Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr67767.C

raw
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
7 void foo () // { dg-bogus "function might be candidate for attribute" }
8 {
9 throw 1;
10 }