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

struct A {};
struct B { constexpr B (const A) {} };
struct C : B { using B::B; };

void
foo ()
{
  C c (A{});
}