1 /* This test checks that local aliases behave sanely. This is necessary for code correctness
2 of aliases introduced by ipa-visibility pass.
4 This test expose weird behaviour of AIX's .set pseudo-op where the global symbol is created,
5 but all uses of the alias are syntactically replaced by uses of the target. This means that
6 both counters are increased to 2. */
10 { dg-require-alias "" }
11 { dg-additional-sources "globalalias-2.c" } */
12 extern int test2count
;
13 extern void abort (void);
20 __attribute__ ((weak
,noinline
))
21 __attribute ((alias("test")))
27 /* This call must bind locally. */
31 /* Depending on linker choice, this one may bind locally
32 or to the other unit. */
33 if (!testcount
&& !test2count
)
37 if ((testcount
!= 1 || test2count
!= 3)
38 && (testcount
!= 3 || test2count
!= 1))