llvm-project/clang/test/CodeGenCXX/windows-on-arm-itanium-thread-local.cpp
Nikita Popov 1b9a6e58a8 [CodeGenCXX] Convert some tests to opaque pointers (NFC)
Conversion done using the script at
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34.

These are tests where the conversion worked out of the box and no
manual fixup was performed.
2022-10-06 12:22:03 +02:00

13 lines
346 B
C++

// RUN: %clang_cc1 -triple thumbv7--windows-itanium -fdeclspec -fms-compatibility -fms-compatibility-version=19.0 -emit-llvm -o - %s | FileCheck %s
void *g();
thread_local static void *c = g();
void f(void *p) {
c = p;
}
// CHECK-LABEL: @_Z1fPv(ptr noundef %p)
// CHECK-NOT: call ptr @_ZTWL1c()
// CHECK: call arm_aapcs_vfpcc ptr @_ZTWL1c()