]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/vla-16.c
1 /* Test for modifying and taking addresses of compound literals whose
2 variably modified types involve typeof. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
5 /* { dg-options "-std=gnu99" } */
9 extern void exit (int);
10 extern void abort (void);
18 int (**p
)[1] = &(typeof (++i
, (int (*)[i
])a
)){&a
};
29 (typeof (++i
, (int (*)[i
])a
)){&a
} = 0;
38 (typeof (++i
, (int (*)[i
])a
)){&a
} += 1;
47 --(typeof (++i
, (int (*)[i
])a
)){&a
+ 1};
56 (typeof (++i
, (int (*)[i
])a
)){&a
}++;