Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / vla-stexp-9.c
blob3593a790785bbfefc44145a44448601b9f898c98
1 /* PR91038 */
2 /* { dg-do run } */
3 /* { dg-options "-O2 -Wunused-variable" } */
7 void foo(void)
9 if (2 * sizeof(int) != sizeof((*({ int N = 2; int (*x)[9][N] = 0; x; })[1])))
10 __builtin_abort();
13 void bar(void)
15 if (2 * sizeof(int) != sizeof((*({ int N = 2; int (*x)[9][N] = 0; x; })[0])))
16 __builtin_abort();
19 void bar0(void)
21 if (2 * 9 * sizeof(int) != sizeof((*({ int N = 2; int (*x)[9][N] = 0; x; }))))
22 __builtin_abort();
25 void bar11(void)
27 sizeof(*((*({ int N = 2; int (*x)[9][N] = 0; x; }) + 0)));
30 void bar12(void)
32 if (2 * sizeof(int) != sizeof(*((*({ int N = 2; int (*x)[9][N] = 0; x; }) ))))
33 __builtin_abort();
36 void bar1(void)
38 if (2 * sizeof(int) != sizeof(*((*({ int N = 2; int (*x)[9][N] = 0; x; }) + 0))))
39 __builtin_abort();
45 int main()
47 foo();
48 bar0();
49 bar12();
50 bar1();
51 bar();