OSDN Git Service

PR middle-end/20622
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / alias-7.c
1 /* { dg-do run } */
2 /* { dg-require-alias "" } */
3 /* { dg-options "-O2" } */
4
5 extern void abort (void);
6
7 int foo __asm__ ("foo") __attribute__((nocommon));
8 extern __typeof (foo) bar __attribute__ ((weak, alias ("foo")));
9
10 int
11 main (void)
12 {
13   if (&foo != &bar || foo || bar)
14     abort ();
15   return bar;
16 }