Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr90760.c
blob6092a4e98cb3137ad06ed50542b78685d8bb0441
1 /* PR c/90760 */
2 /* { dg-do compile } */
3 /* { dg-require-alias "" } */
4 /* { dg-require-named-sections "" } */
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" } */