blob: aa67d5860093e94adca50c557ae039789921fba1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-require-alias "" } */
extern void abort (void);
int test2count;
__attribute__ ((weak,noinline))
void test(void)
{
test2count++;
}
__attribute ((alias("test")))
static void test2(void);
void tt()
{
int prev = test2count;
/* This call must bind locally. */
test2();
if (test2count == prev)
abort();
test();
}
|