YouCompleteMe/cpp/llvm/tools/clang/test/CXX/class.derived/class.virtual/p12.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

20 lines
295 B
C++

// RUN: %clang_cc1 -ast-print %s | FileCheck %s
// CHECK: test12_A::foo()
struct test12_A {
virtual void foo();
void bar() {
test12_A::foo();
}
};
// CHECK: xp->test24_B::wibble()
struct test24_B {
virtual void wibble();
};
void foo(test24_B *xp) {
xp->test24_B::wibble();
}