Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr67767.C
blob: fd4ae2d3f3505f69561a686c83f32ac1ca68d9d8 [
file
] [
log
] [
blame
]
// PR c++/67767
// { dg-do compile { target c++11 } }
// { dg-options "-Wsuggest-attribute=noreturn" }
void
foo
[[
gnu
::
cold
,
gnu
::
noreturn
]]
();
void
foo
()
// { dg-bogus "function might be candidate for attribute" }
{
throw
1
;
}