gcc/testsuite/gcc.dg/pr90760.c
raw| 1 | /* PR c/90760 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-alias "" } */ |
| 4 | /* { dg-require-named-sections "" } */ |
| 5 | |
| 6 | void bar (void) {} |
| 7 | void foo (void) __attribute__ ((alias ("bar"))); /* { dg-error "section of alias 'foo' must match section of its target" } */ |
| 8 | void foo (void) __attribute__ ((section ("baz"))); |
| 9 | void qux (void) __attribute__ ((alias ("bar"), section ("baz"))); /* { dg-error "section of alias 'qux' must match section of its target" } */ |