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