diff options
Diffstat (limited to 'clang/test/SemaCXX/PR35832.cpp')
-rw-r--r-- | clang/test/SemaCXX/PR35832.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/PR35832.cpp b/clang/test/SemaCXX/PR35832.cpp new file mode 100644 index 00000000000..fd47cd6a5ee --- /dev/null +++ b/clang/test/SemaCXX/PR35832.cpp @@ -0,0 +1,21 @@ +// 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; } +}; |