blob: 2dbb0b83954df3d97beeaa86c5e746eeb9af171d [file] [log] [blame]
Fariborz Jahanian27262672011-01-20 17:19:02 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -emit-llvm -o - %s | FileCheck %s
2
3struct Base {
Fariborz Jahanian27262672011-01-20 17:19:02 +00004 virtual void abc(void) const;
5};
6
7void Base::abc(void) const {}
8
9void FUNC(Base* p) {
10 p->Base::abc();
11}
12
Fariborz Jahanian7ac0ff22011-01-21 01:04:41 +000013// CHECK: getelementptr inbounds (void (%struct.Base*)** bitcast ([3 x i8*]* @_ZTV4Base to void (%struct.Base*)**), i64 2)
Fariborz Jahanian27262672011-01-20 17:19:02 +000014// CHECK-NOT: call void @_ZNK4Base3abcEv