summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg.C
blob: 1413b24bd842ac3cadbdcbbfb21ee1313cde2975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/46335
// { dg-options -std=c++0x }

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