☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-empty18.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-empty18.C
code
plain
raw
1
// PR c++/110197
2
// { dg-do compile { target c++11 } }
3
4
struct A { constexpr A(int) { } };
5
struct B { A a; };
6
constexpr B f(int n) { return B{A{n}}; }
7
constexpr B b = f(1);