aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete3.C
blob: c0516f089e77b90a3120c4ef96c54f0cc884880f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/49015
// { dg-do compile { target c++11 } }

class A;

class B {
  friend constexpr B f(A); // Line 5
};

class A {};

constexpr B f(A) { return B(); } // Line 10