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

9 lines
145 B
C

// PR c++/33492
// { dg-options "" }
void foo()
{
if (throw 0) // { dg-error "could not convert .\\<throw-expression\\>. to .bool." }
;
}