summaryrefslogtreecommitdiff
path: root/clang/test/CXX/class.derived/class.virtual/p12.cpp
blob: 208a0d155fe71a0c5ecd0e4a828fe74710b5528f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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();
}