blob: 1ea29885844aa23e79bc7100690deffa6819e9c6 [file] [log] [blame]
/* PR70128 */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-strict-aliasing -fdump-tree-optimized" } */
void foo (int b)
{
extern void bar (void);
extern void baz (void);
void *p;
if (b)
p = bar;
else
p = baz;
*(char *)p = 1;
}
/* We should keep the store to the function locations. */
/* { dg-final { scan-tree-dump " = 1;" "optimized" } } */