libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / embed-16.c
blob0bb4d35bc500f814563b6ad2cd64c015ec7e5d73
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu23 -Woverride-init" } */
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) /* { dg-warning "initialized field overwritten" } */
10 [18] = a[18] /* { dg-warning "initialized field overwritten" } */