summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist51.C
blob: 9163dd3a867eee15b0c96f4b9701bed56ade7d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/47184
// { dg-options -std=c++0x }

struct S
{
  int a;
};
struct T
{
  T(S s) {}
};
int main()
{
  T t(S{1});
}