aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/abi/noreturn1.C
blob: 0532cf2f80342dbd969d164ba0652d7b22455512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test that attribute noreturn is not part of the mangled name.
// { dg-options -fabi-version=0 }

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

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

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