blob: 4b069ead02b87078364ce96906bd50f5d2473b04 [file] [log] [blame]
Anders Carlsson82ba57c2009-11-25 03:15:49 +00001// RUN: clang-cc -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s
2
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() { }