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