libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr95854.c
blobdb45d6aaf4250e986c04044096aeaf5ddb76a603
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fno-vect-cost-model -fno-tree-scev-cprop -ftracer" } */
3 /* { dg-additional-options "-march=armv8.5-a+sve2" { target aarch64*-*-* } } */
5 extern void abort (void);
6 int c, d;
7 int main()
9 int e[] = {4, 4, 4, 4, 4, 4, 4, 4, 4};
10 d = 8;
11 for (; d; d--)
12 for (int a = 0; a <= 8; a++)
14 c = e[1];
15 e[d] = 0;
17 if (c != 0)
18 abort ();
19 return 0;