Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-prvalue2.C

raw
1 // PR c++/117980
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O" }
4
5 struct S {
6 constexpr S(S &); // { dg-warning "used but never defined" }
7 ~S();
8 };
9 struct B {
10 S s;
11 };
12 struct A {
13 B b;
14 };
15 void fn(B b) { A{b}; }