blob: ab6db292e6940fdc80bfe8138f3919f9941cc87e [file] [log] [blame]
/* { dg-require-alias "" } */
int test2count;
extern void abort (void);
static
void test(void)
{
test2count++;
}
__attribute__ ((weak,noinline))
__attribute ((alias("test")))
void test2(void);
void tt()
{
int prev = test2count;
/* This call must bind locally. */
test();
if (test2count == prev)
abort();
test2();
}