1 /* PR70128 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-optimized" } */ 4 foo(int b)5void foo (int b) 6 { 7 extern void bar (void); 8 extern void baz (void); 9 void *p; 10 if (b) 11 p = bar; 12 else 13 p = baz; 14 *(char *)p = 1; 15 } 16 17 /* We should keep the store to the function locations. */ 18 /* { dg-final { scan-tree-dump " = 1;" "optimized" } } */ 19