aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/using-enum-4.C
blob: 03432cf45326af78395258cff115fc7f0ab21f8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test for suggestion to try 'using enum'.
// { dg-do compile { target c++20 } }

struct A
{
  enum E { e };
};

struct B
{
  using A::E;			// { dg-error "" }
  // { dg-message "using enum" "" { target *-*-* } .-1 }
};