summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/access3.C
blob: 2c21c1e5fa9edde88d54a8216f724c2464860928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }
// { dg-options "-fno-access-control" }

// PR c++/20022

// Make sure -fno-access-control doesn't crash, and actually grants at
// least some access.

class B {
  enum A {};
};

B::A r;