(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
alias-7.c
       1  /* { dg-do run } */
       2  /* { dg-require-alias "" } */
       3  /* { dg-options "-O2" } */
       4  /* { dg-skip-if "weak alias" { powerpc-ibm-aix* } } */
       5  
       6  extern void abort (void);
       7  
       8  #define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
       9  #define ASMNAME2(prefix, cname) STRING (prefix) cname
      10  #define STRING(x)    #x
      11  
      12  int foo __asm__ (ASMNAME ("foo")) __attribute__((nocommon));
      13  extern __typeof (foo) bar __attribute__ ((weak, alias ("foo")));
      14  
      15  int
      16  main (void)
      17  {
      18    if (&foo != &bar || foo || bar)
      19      abort ();
      20    return bar;
      21  }