aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor11.C
blob: e22c55f7a92502561b40601a6ebd9ee2f91a15b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/55856
// { dg-do compile { target c++11 } }

struct A
{
  A(const char *);
};

template <class T>
struct B
{
  T t;
  template <class U> constexpr B(U&& u): t(u) { }
};

B<A&&> b("");