aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error26.C
blob: 6e2b897d92b5cce43c84c4f1cdcfe5a0e7b2e91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/20148
// { dg-options "" }

void foo()
{
  if (({int c[2];})) ; // { dg-error "\{\.\.\.\}" }
}

void bar()
{
  if (({})); // { dg-error "\{\.\.\.\}" }
}