Debian Codegraph @

gcc/testsuite/g++.dg/other/error32.C

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 }