blob: 6092a4e98cb3137ad06ed50542b78685d8bb0441 [file] [log] [blame]
/* PR c/90760 */
/* { dg-do compile } */
/* { dg-require-alias "" } */
/* { dg-require-named-sections "" } */
void bar (void) {}
void foo (void) __attribute__ ((alias ("bar"))); /* { dg-error "section of alias 'foo' must match section of its target" } */
void foo (void) __attribute__ ((section ("baz")));
void qux (void) __attribute__ ((alias ("bar"), section ("baz"))); /* { dg-error "section of alias 'qux' must match section of its target" } */