llvm-for-llvmta/tools/clang/test/SemaCXX/PR35832.cpp

22 lines
368 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
class B {
public:
int i;
struct { struct { union { int j; }; }; };
union { int k; };
};
class X : public B { };
class Y : public B { };
class Z : public X, public Y {
public:
int a() { return X::i; }
int b() { return X::j; }
int c() { return X::k; }
int d() { return this->X::j; }
};