brintos

brintos / llvm-project-archived public Read only

0
0
Text · 295 B · 208a0d1 Raw
20 lines · cpp
1// RUN: %clang_cc1 -ast-print %s | FileCheck %s2 3// CHECK: test12_A::foo()4struct test12_A {5  virtual void foo();6  7  void bar() {8    test12_A::foo();9  }10};11 12// CHECK: xp->test24_B::wibble()13struct test24_B {14  virtual void wibble();15};16 17void foo(test24_B *xp) {18  xp->test24_B::wibble();19}20