llvm-for-llvmta/tools/clang/test/SemaTemplate/default-member-init.cpp

13 lines
203 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -std=c++20 -verify %s
// expected-no-diagnostics
struct Q { enum F { f }; };
template<typename T> struct A : Q {
enum E { e } E = e;
using Q::F;
Q::F F = f;
};
A<int> a = {};