1*8fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -ast-print %s | FileCheck %s 2c190523dSDouglas Gregor 3c190523dSDouglas Gregor // CHECK: test12_A::foo() 4c190523dSDouglas Gregor struct test12_A { 5c190523dSDouglas Gregor virtual void foo(); 6c190523dSDouglas Gregor bartest12_A7c190523dSDouglas Gregor void bar() { 8c190523dSDouglas Gregor test12_A::foo(); 9c190523dSDouglas Gregor } 10c190523dSDouglas Gregor }; 11c190523dSDouglas Gregor 12c190523dSDouglas Gregor // CHECK: xp->test24_B::wibble() 13c190523dSDouglas Gregor struct test24_B { 14c190523dSDouglas Gregor virtual void wibble(); 15c190523dSDouglas Gregor }; 16c190523dSDouglas Gregor foo(test24_B * xp)17c190523dSDouglas Gregorvoid foo(test24_B *xp) { 18c190523dSDouglas Gregor xp->test24_B::wibble(); 19c190523dSDouglas Gregor } 20