| // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++0x -S %s -o %t-64.s |
| // RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s |
| // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++0x -S %s -o %t-32.s |
| // RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s |
| extern "C" int printf(...); |
| S() : iS (++count) { printf("S::S(%d)\n", iS); } |
| ~S() { printf("S::~S(%d)\n", iS); } |
| V() : iV (++count) { printf("V::V(%d)\n", iV); } |
| virtual ~V() { printf("V::~V(%d)\n", iV); } |
| cost_val = new unsigned[10]; |
| // CHECK-LP64: call __ZdaPv |
| // CHECK-LP32: call L__ZdaPv |