| Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s | 
| Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s | 
| Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s | 
| Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 4 | // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s | 
| Fariborz Jahanian | b3c44f9 | 2009-10-01 20:39:51 +0000 | [diff] [blame] | 5 |  | 
|  | 6 | struct A { | 
|  | 7 | A(int); | 
|  | 8 | }; | 
|  | 9 |  | 
|  | 10 | struct B { | 
|  | 11 | B(A); | 
|  | 12 | }; | 
|  | 13 |  | 
|  | 14 | int main () { | 
|  | 15 | (B)10; | 
|  | 16 | B(10); | 
|  | 17 | static_cast<B>(10); | 
|  | 18 | } | 
|  | 19 |  | 
|  | 20 | // CHECK-LP64: call     __ZN1AC1Ei | 
|  | 21 | // CHECK-LP64: call     __ZN1BC1E1A | 
|  | 22 | // CHECK-LP64: call     __ZN1AC1Ei | 
|  | 23 | // CHECK-LP64: call     __ZN1BC1E1A | 
|  | 24 | // CHECK-LP64: call     __ZN1AC1Ei | 
|  | 25 | // CHECK-LP64: call     __ZN1BC1E1A | 
|  | 26 |  | 
|  | 27 | // CHECK-LP32: call     L__ZN1AC1Ei | 
|  | 28 | // CHECK-LP32: call     L__ZN1BC1E1A | 
|  | 29 | // CHECK-LP32: call     L__ZN1AC1Ei | 
|  | 30 | // CHECK-LP32: call     L__ZN1BC1E1A | 
|  | 31 | // CHECK-LP32: call     L__ZN1AC1Ei | 
|  | 32 | // CHECK-LP32: call     L__ZN1BC1E1A |