YouCompleteMe/cpp/llvm/tools/clang/test/CXX/class.derived/class.member.lookup/p9.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

29 lines
613 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace rdar8436162 {
class ClsA {
public:
static void f();
void g();
};
class ClsB : virtual private ClsA {
public:
using ClsA::f;
using ClsA::g; // expected-note{{member found by ambiguous name lookup}}
};
class ClsF : virtual private ClsA {
public:
using ClsA::f;
using ClsA::g; // expected-note{{member found by ambiguous name lookup}}
};
class ClsE : public ClsB, public ClsF {
void test() {
f();
g(); // expected-error{{member 'g' found in multiple base classes of different types}}
}
};
}