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

class base
{
protected:
  constexpr base() { }
};

struct A : base { };

int main()
{
  A a;
}