summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/windows-on-arm-itanium-thread-local.c
blob: 7f12c367d91b85d10966a3cb2f3301e6f3c0a1f3 (plain)
1
2
3
4
5
6
7
8
9
10
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()