libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / gnu23-auto-1.c
blob82d3d3d44fcec698b3c8eac659ed1bf2b4af8375
1 /* Test C23 auto. Invalid code with GNU extensions. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu23" } */
5 void
6 f ()
8 /* Do not allow a non-definition declaration of a tag in the auto
9 initializer, to avoid it escaping an inner scope as shown here. */
10 auto x = ({ struct s; struct s *x = 0; x; }); /* { dg-error "declared in underspecified object initializer" } */