☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-51707.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-51707.C
code
plain
raw
1
// PR c++/51707
2
// { dg-do compile { target c++11 } }
3
4
struct S {
5
constexpr S() {}
6
};
7
8
struct T {
9
constexpr T(S const& s) : s{s} {}
10
S const& s;
11
};
12
13
constexpr S s {};
14
constexpr T t { s };