aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/stmtexpr11.C
blob: 8b5c5f8476873a46d0ebfb015f4dc82671c09b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/31337
// { dg-options "" }

struct A
{
  int i[0];
  A();
  A(const A&);
  ~A();
};

void foo()
{
  A a = ({ A(); });
}