PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / typename-vla-1.c
blob16165131287d11342da68c0f2496393325f4ec2e
1 /* PR c/21536 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -Wuninitialized" } */
5 extern void abort (void);
6 extern void exit (int);
8 int
9 main (void)
11 int a = 1;
12 if (sizeof (*(++a, (char (*)[a])0)) != 2)
13 abort ();
14 exit (0);