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