2010-02-19 04:32:20 +03:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 -mconstructor-aliases | FileCheck %s
|
2009-11-25 06:15:49 +03:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
A();
|
|
|
|
};
|
|
|
|
|
2010-02-19 04:32:20 +03:00
|
|
|
// CHECK: @_ZN1AC1Ev = alias {{.*}} @_ZN1AC2Ev
|
2009-11-25 06:15:49 +03:00
|
|
|
// CHECK: define void @_ZN1AC2Ev(%struct.A* %this)
|
|
|
|
A::A() { }
|
|
|
|
|
|
|
|
struct B : virtual A {
|
|
|
|
B();
|
|
|
|
};
|
|
|
|
|
2010-02-17 06:52:49 +03:00
|
|
|
// CHECK: define void @_ZN1BC1Ev(%struct.B* %this)
|
2010-02-19 00:31:48 +03:00
|
|
|
// CHECK: define void @_ZN1BC2Ev(%struct.B* %this, i8** %vtt)
|
2009-11-25 06:15:49 +03:00
|
|
|
B::B() { }
|
2010-02-06 05:44:09 +03:00
|
|
|
|
|
|
|
struct C : virtual A {
|
|
|
|
C(bool);
|
|
|
|
};
|
|
|
|
|
2010-02-17 06:52:49 +03:00
|
|
|
// CHECK: define void @_ZN1CC1Eb(%struct.B* %this, i1 zeroext)
|
2010-02-19 00:31:48 +03:00
|
|
|
// CHECK: define void @_ZN1CC2Eb(%struct.B* %this, i8** %vtt, i1 zeroext)
|
2010-02-06 05:44:09 +03:00
|
|
|
C::C(bool) { }
|