libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr96929.c
blob65b6147f7a46171e047031f9d0e88b8829ab8de3
1 /* PR tree-optimization/96929 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump "baz \\\(\\\);" "optimized" } } */
5 /* { dg-final { scan-tree-dump-times "return -1;" 2 "optimized" } } */
6 /* { dg-final { scan-tree-dump-not " >> " "optimized" } } */
8 int baz (void);
10 int
11 foo (void)
13 return -1 >> baz ();
16 int
17 bar (int y)
19 int z = -1;
20 return z >> y;