libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / embed-15.c
blobad52b3452f1b6a06a5f0c987c69d7a1f68a4d047
1 /* { dg-do run } */
2 /* { dg-options "-std=gnu23 -O2" } */
4 const unsigned char a[] = {
5 #embed __FILE__
6 };
7 const unsigned char b[] = {
8 [10] = 2, [5] = 3, [13] = 4, [17] = 5, [0] =
9 #embed __FILE__ suffix(,) limit (256)
10 [18] = a[18]
13 int
14 main ()
16 if (sizeof (b) != 256 || __builtin_memcmp (b, a, 256))
17 __builtin_abort ();