PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49000.c
blob996b8f6b1ac08953a7e4f5eaa4d59de3943a31aa
1 /* PR tree-optimization/49000 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g" } */
5 static int
6 foo (int x, int y)
8 return x * y;
11 static int
12 bar (int *z)
14 return *z;
17 void
18 baz (void)
20 int a = 42;
21 int *b = &a;
22 foo (bar (&a), 3);
25 void
26 test (void)
28 baz ();