summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/pr46940_0.c
blob: 5283495e8bb5cbfb8d321b2d6b16552f23c82903 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-require-linker-plugin "" } */
/* { dg-extra-ld-options "-fuse-linker-plugin" } */
#include <stdio.h>

extern __attribute__((visibility("hidden"))) void _moz_foo (void);
extern __typeof (_moz_foo) _moz_foo __asm__ ("" "INT__foo") __attribute__((__visibility__("hidden"))) ;
void _moz_foo(void)
{
  printf ("blah\n");
}
extern __typeof (_moz_foo) EXT__foo __asm__("" "_moz_foo") __attribute__((__alias__("" "INT__foo")));