1 // PR c++/67767
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wsuggest-attribute=noreturn" }
4 
5 void foo [[gnu::cold, gnu::noreturn]] ();
6 
foo()7 void foo ()	// { dg-bogus "function might be candidate for attribute" }
8 {
9   throw 1;
10 }
11