Home | History | Annotate | Download | only in class.virtual
      1 // RUN: %clang_cc1 -ast-print %s | FileCheck %s
      2 
      3 // CHECK: test12_A::foo()
      4 struct test12_A {
      5   virtual void foo();
      6 
      7   void bar() {
      8     test12_A::foo();
      9   }
     10 };
     11 
     12 // CHECK: xp->test24_B::wibble()
     13 struct test24_B {
     14   virtual void wibble();
     15 };
     16 
     17 void foo(test24_B *xp) {
     18   xp->test24_B::wibble();
     19 }
     20