summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/stmtexpr6.C
blob: d2518a64a38907c537da89c4ac64aaddb21101ca (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do run }
// { dg-options "" }

int a[128];

int main() {
  // Check that array-to-pointer conversion occurs in a
  // statement-expression.
  if (sizeof (({ a; })) != sizeof (int *))
    return 1;
}