blob: 0f20501f7c532172df1b12308e37ae341554ac61 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-mcmodel=medany -mexplicit-relocs -O" } */
/* Verify that the branch doesn't get optimized away. */
extern int weak_func(void) __attribute__ ((weak));
int
sub (void)
{
if (weak_func)
return weak_func ();
return 0;
}
/* { dg-final { scan-assembler "b\(ne|eq\)" } } */