[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / PR35832.cpp
blobfd47cd6a5eeef314ef28b8a70e34c03d9ad41e60
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // expected-no-diagnostics
5 class B {
6 public:
7 int i;
8 struct { struct { union { int j; }; }; };
9 union { int k; };
12 class X : public B { };
13 class Y : public B { };
15 class Z : public X, public Y {
16 public:
17 int a() { return X::i; }
18 int b() { return X::j; }
19 int c() { return X::k; }
20 int d() { return this->X::j; }