aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr16566-1.c
blob: 4ed4ab730e69247d148917a1c8ef9fb9f184bd57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ICE with flexible arrays in non-lvalue structures.  Bug 16566
   (comment #3).  */

struct S;

struct C {
    int i;
    struct S *tab[];
};

struct S { struct C c; };

void foo (struct S *x) {
  foo(((void)1, x->c).tab[0]);
}