libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr113013.c
blobb34964071b731d24917aaebdfd6888431277cfb2
1 /* PR tree-optimization/113013 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -O2" } */
5 struct S { short x; } s;
6 void *foo () __attribute__((__alloc_size__(1)));
7 struct S *p;
9 __SIZE_TYPE__
10 bar (void)
12 p = foo (s);
13 return __builtin_dynamic_object_size (p, 0);