diff options
Diffstat (limited to 'test/CodeGenCXX/windows-on-arm-stack-probe-size.cpp')
-rw-r--r-- | test/CodeGenCXX/windows-on-arm-stack-probe-size.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/windows-on-arm-stack-probe-size.cpp b/test/CodeGenCXX/windows-on-arm-stack-probe-size.cpp new file mode 100644 index 000000000000..235d8a0c465f --- /dev/null +++ b/test/CodeGenCXX/windows-on-arm-stack-probe-size.cpp @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -triple thumbv7--windows-msvc -S -emit-llvm -o - -x c++ %s | FileCheck %s +// RUN: %clang_cc1 -triple thumbv7--windows-itanium -fno-use-cxa-atexit -S -emit-llvm -o - -x c++ %s | FileCheck %s + +class C { +public: + ~C(); +}; + +static C sc; +void f(const C &ci) { sc = ci; } + +// CHECK: atexit + |