Fariborz Jahanian | 1d9b5ef | 2009-08-15 18:55:17 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -triple x86_64-apple-darwin -S %s -o %t-64.s && |
| 2 | // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s && |
| 3 | // RUN: clang-cc -triple i386-apple-darwin -S %s -o %t-32.s && |
| 4 | // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s && |
| 5 | // RUN: true |
| 6 | |
| 7 | extern "C" int printf(...); |
| 8 | |
| 9 | struct S { |
| 10 | S() { printf("S::S()\n"); } |
| 11 | int iS; |
| 12 | }; |
| 13 | |
| 14 | struct M { |
| 15 | S ARR_S; |
| 16 | }; |
| 17 | |
| 18 | int main() { |
| 19 | M m1; |
| 20 | } |
| 21 | |
| 22 | // CHECK-LP64: call __ZN1SC1Ev |
| 23 | |
| 24 | // CHECK-LP32: call L__ZN1SC1Ev |