Debian Codegraph @

clang/test/Interpreter/access.cpp

raw
1 // REQUIRES: host-supports-jit
2 // RUN: cat %s | clang-repl 2>&1 | FileCheck %s
3
4 struct A { };
5
6 class B { using u = A; const static int p = 1; public: u *foo(); };
7
8 B::u* foo() { return nullptr; }
9 // CHECK: error: 'u' is a private member of 'B'
10
11 B::u * B::foo() { return nullptr; }
12 // CHECK-NOT: error: 'u' is a private member of 'B'
13
14 int p = B::p;
15 // CHECK: error: 'p' is a private member of 'B'