aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg.C
blob: eaa3fbdfdb4b2d719a23b8fc97c7812a40c38214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/46335
// { dg-do compile { target c++11 } }

struct T { };
struct A {
    A(const T &tr =T()) {}
};
struct B {
    A k;
};
B kk_;
A fk_;