xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/apple-kext-indirect-call.C (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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 Sambuc void Base::abc(void) const {}
8*f4a2713aSLionel Sambuc 
FUNC(Base * p)9*f4a2713aSLionel Sambuc void 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