aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/abi/noreturn2.C
blob: 72accafe6600f14f9678cf76e3eb912b03050f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test for buggy mangling of attribute noreturn in abi<=4
// { dg-options -fabi-version=4 }

void baz (const char *fmt, ...);

// { dg-final { scan-assembler "_Z3barPVFvPKczE" } }
void bar (void (*baz) (const char *fmt, ...)
			   __attribute__ ((noreturn, format (printf, 1, 2))));

void
foo ()
{
  bar (&baz);
}