p12.cpp 295 B

12345678910111213141516171819
  1. // RUN: %clang_cc1 -ast-print %s | FileCheck %s
  2. // CHECK: test12_A::foo()
  3. struct test12_A {
  4. virtual void foo();
  5. void bar() {
  6. test12_A::foo();
  7. }
  8. };
  9. // CHECK: xp->test24_B::wibble()
  10. struct test24_B {
  11. virtual void wibble();
  12. };
  13. void foo(test24_B *xp) {
  14. xp->test24_B::wibble();
  15. }