diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr46674.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr46674.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr46674.c b/gcc/testsuite/gcc.dg/pr46674.c new file mode 100644 index 00000000000..cf6dfc77fb5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr46674.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-require-alias "" } */ +/* { dg-options "-O2" } */ + +int yum; +void dessert (void) { ++yum; } +extern void jelly (void) __asm__ ("jelly2") __attribute__ ((alias ("dessert"), weak)); +extern void wobbly (void) __attribute__ ((alias ("jelly2"), weak)); + +/* { dg-final { scan-assembler "wobbly" } } */ +/* { dg-final { scan-assembler "jelly2" } } */ |