llvm-for-llvmta/tools/clang/test/CodeGenCXX/mingw-thread-local.cpp

10 lines
198 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple x86_64-w64-mingw32 | FileCheck %s
extern thread_local int var;
int get() {
return var;
}
// CHECK: declare extern_weak void @_ZTH3var()