Anders Carlsson | 82ba57c | 2009-11-25 03:15:49 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s |
2 | |||||
3 | struct A { | ||||
4 | A(); | ||||
5 | }; | ||||
6 | |||||
7 | // CHECK: define void @_ZN1AC1Ev(%struct.A* %this) | ||||
8 | // CHECK: define void @_ZN1AC2Ev(%struct.A* %this) | ||||
9 | A::A() { } | ||||
10 | |||||
11 | struct 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) | ||||
17 | B::B() { } |