summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-incomplete3.C
blob: 81822b07e2fac0ac99e540873895b16f1f46fdc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/49015
// { dg-options -std=c++0x }

class A;

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

class A {};

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