aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C
blob: 9d8a3bd8be8d25749dc4ac1b110a4dfbaa550031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile { target c++11 } }
// { dg-options "" }

struct S { };

struct T
{
  S s;
};

void f(T const &);

void g()
{
  f((T){S()});
}