Debian Codegraph @

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

raw
1 // PR c++/49015
2 // { dg-do compile { target c++11 } }
3
4 class A;
5
6 class B {
7 friend constexpr B f(A); // Line 5
8 };
9
10 class A {};
11
12 constexpr B f(A) { return B(); } // Line 10