1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -emit-llvm -o - %s | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc struct Base { 4*f4a2713aSLionel Sambuc virtual void abc(void) const; 5*f4a2713aSLionel Sambuc }; 6*f4a2713aSLionel Sambuc abc(void)7*f4a2713aSLionel Sambucvoid Base::abc(void) const {} 8*f4a2713aSLionel Sambuc FUNC(Base * p)9*f4a2713aSLionel Sambucvoid FUNC(Base* p) { 10*f4a2713aSLionel Sambuc p->Base::abc(); 11*f4a2713aSLionel Sambuc } 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc // CHECK: getelementptr inbounds (void (%struct.Base*)** bitcast ([3 x i8*]* @_ZTV4Base to void (%struct.Base*)**), i64 2) 14*f4a2713aSLionel Sambuc // CHECK-NOT: call void @_ZNK4Base3abcEv 15