2 /* { dg-require-alias "" } */
3 /* { dg-options "-O2" } */
5 extern void abort (void);
7 #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
8 #define ASMNAME2(prefix, cname) STRING (prefix) cname
11 int foo
__asm__ (ASMNAME ("foo")) __attribute__((nocommon
));
12 extern __typeof (foo
) bar
__attribute__ ((weak
, alias ("foo")));
17 if (&foo
!= &bar
|| foo
|| bar
)