summaryrefslogtreecommitdiff
path: root/test/SemaCXX/PR35832.cpp
blob: fd47cd6a5eeef314ef28b8a70e34c03d9ad41e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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; }
};