summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr90760.c
blob: 6092a4e98cb3137ad06ed50542b78685d8bb0441 (plain)
1
2
3
4
5
6
7
8
9
/* 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" } */