diff options
Diffstat (limited to 'test/CodeGen/windows-on-arm-itanium-thread-local.c')
-rw-r--r-- | test/CodeGen/windows-on-arm-itanium-thread-local.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/windows-on-arm-itanium-thread-local.c b/test/CodeGen/windows-on-arm-itanium-thread-local.c new file mode 100644 index 000000000000..7f12c367d91b --- /dev/null +++ b/test/CodeGen/windows-on-arm-itanium-thread-local.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -triple thumbv7--windows-itanium -fdeclspec -fms-compatibility -fms-compatibility-version=19.0 -S -emit-llvm -o - %s | FileCheck %s + +__declspec(thread) static void *c; +void f(void *p) { + c = p; +} + +// CHECK-LABEL: @f(i8* %p) +// CHECK-NOT: call i8** @_ZTWL1c() +// CHECK: call arm_aapcs_vfpcc i8** @_ZTWL1c() + |