aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/stmt-expr-4.c
blob: d6d01633d3bb0b2728e93a6b4ef7467defbdd914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

/* { dg-options "-O2 -std=gnu99" } */
/* Internal compiler error in iterative_hash_expr */

struct tree_string
{
  char str[1];
};

union tree_node
{
  struct tree_string string;
};

char *Foo (union tree_node * num_string)
{
  char *str = ((union {const char * _q; char * _nq;})
	       ((const char *)(({ __typeof (num_string) const __t
				     = num_string;  __t; })
			       ->string.str)))._nq;
  return str;
}