summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error32.C
blob: 56d3b7aec8b1d5e8e4b32ee5fa051cceb5062269 (plain)
1
2
3
4
5
6
7
8
// PR c++/33492
// { dg-options "" }

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