[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / cxx14-access.cpp
blobea129b1756961d0a7af3b40363a4a77cd124dd31
1 // RUN: %clang_cc1 -fsyntax-only -std=c++14 -verify %s
3 namespace NoCrashOnDelayedAccessCheck {
4 class Foo {
5 class Private; // expected-note {{declared private here}}
6 };
8 struct Bar {};
10 template <typename T>
11 Foo::Private Bar::ABC; // expected-error {{no member named 'ABC' in 'NoCrashOnDelayedAccessCheck::Bar'}} \
12 expected-error {{'Private' is a private member of}}