PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr22098-2.c
blob035a755a5222bcbc69387df04ca599a46392c058
1 extern void abort (void);
2 extern void exit (int);
3 typedef __UINTPTR_TYPE__ uintptr_t;
4 int
5 main (void)
7 int a = 0;
8 int *p;
9 uintptr_t b;
10 b = (uintptr_t)(p = &(int []){0, 1, 2}[1]);
11 if (*p != 1 || *(int *)b != 1)
12 abort ();
13 exit (0);