blob: 200f21a5da726e23f7c0d3d553be4a092418e2a2 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s
Anders Carlsson82ba57c2009-11-25 03:15:49 +00002
3struct A {
4 A();
5};
6
7// CHECK: define void @_ZN1AC1Ev(%struct.A* %this)
8// CHECK: define void @_ZN1AC2Ev(%struct.A* %this)
9A::A() { }
10
11struct B : virtual A {
12 B();
13};
14
15// CHECK: define void @_ZN1BC1Ev(%struct.B* %this)
16// CHECK: define void @_ZN1BC2Ev(%struct.B* %this, i8** %vtt)
17B::B() { }
Anders Carlsson6710c532010-02-06 02:44:09 +000018
19struct C : virtual A {
20 C(bool);
21};
22
23// CHECK: define void @_ZN1CC1Eb(%struct.B* %this, i1 zeroext)
24// CHECK: define void @_ZN1CC2Eb(%struct.B* %this, i8** %vtt, i1 zeroext)
25C::C(bool) { }