summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/stmtexpr4.C
blob: a37c33ae086326d909649fe76d69bf3626665109 (plain)
1
2
3
4
5
6
7
8
// PR c++/20147
// { dg-do compile }
// { dg-options "" }

void foo()
{
  ({x;}); // { dg-error "was not declared" }
}