1 /* PR tree-optimization/49000 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -g" } */ 4 5 static foo(int x,int y)6foo (int x, int y) 7 { 8 return x * y; 9 } 10 11 static int bar(int * z)12bar (int *z) 13 { 14 return *z; 15 } 16 17 void baz(void)18baz (void) 19 { 20 int a = 42; 21 int *b = &a; 22 foo (bar (&a), 3); 23 } 24 25 void test(void)26test (void) 27 { 28 baz (); 29 } 30