☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
error32.C
☽
☼
gcc/testsuite/g++.dg/other/error32.C
code
plain
raw
1
// PR c++/33492
2
// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
3
// { dg-options "" }
4
5
void foo()
6
{
7
if (throw 0) // { dg-error "could not convert .\\<throw-expression\\>. from .void. to .bool." }
8
;
9
}