summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error19.C
blob: 9389dc170002b809fea0c2d686d9c42dc4145069 (plain)
1
2
3
4
5
6
7
// PR c++/33495

void foo()
{
  if (({while(true);})) // { dg-error "forbids|<statement>" }
    ;
}