blob: 1e6079d8429af214f16ddd9d29d86d0083984eed [file] [log] [blame]
/* PR rtl-optimization/58365 */
extern void abort (void);
struct S
{
volatile int a;
int b, c, d, e;
} f;
static struct S g, h;
int i = 1;
char
foo (void)
{
return i;
}
static struct S
bar (void)
{
if (foo ())
return f;
return g;
}
int
main ()
{
h = bar ();
f.b = 1;
if (h.b != 0)
abort ();
return 0;
}