| // 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 |
| extern "C" int printf(...); |
| S() : iS(++count) { printf("S::S(%d)\n", iS); } |
| ~S() { printf("S::~S(%d)\n", iS); } |
| // CHECK-LP64: call ___cxa_atexit |
| // CHECK-LP64: call ___cxa_atexit |
| // CHECK-LP64: call ___cxa_atexit |
| // CHECK-LP64: call ___cxa_atexit |
| // CHECK-LP64: call ___cxa_atexit |
| // CHECK-LP64: call ___cxa_atexit |
| // CHECK-LP64: call ___cxa_atexit |
| // CHECK-LP64: call ___cxa_atexit |