llvm-project/clang/test/SemaCXX/cxx14-access.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
397 B
C++
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only -std=c++14 -verify %s
namespace NoCrashOnDelayedAccessCheck {
class Foo {
class Private; // expected-note {{declared private here}}
};
struct Bar {};
template <typename T>
Foo::Private Bar::ABC; // expected-error {{no member named 'ABC' in 'NoCrashOnDelayedAccessCheck::Bar'}} \
expected-error {{'Private' is a private member of}}
}