LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / noreturn-2.c
blob4214de3144454655ff53407ac68ddbbb75eb558f
1 /* Check for invalid "noreturn" warning. */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -Wall" } */
4 extern void abort (void) __attribute__ ((__noreturn__));
6 void noreturn (int x) __attribute__ ((__noreturn__));
8 void
9 noreturn (int x)
11 abort ();
12 } /* { dg-bogus "does return" "noreturn does return" } */