[clang] dc900ee - [test] Fix threadlocal_address.cpp after D129833
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 31 23:49:38 PDT 2022
Author: Fangrui Song
Date: 2022-07-31T23:49:33-07:00
New Revision: dc900eeaf2af0d459c69224b2d023d8d2287944a
URL: https://github.com/llvm/llvm-project/commit/dc900eeaf2af0d459c69224b2d023d8d2287944a
DIFF: https://github.com/llvm/llvm-project/commit/dc900eeaf2af0d459c69224b2d023d8d2287944a.diff
LOG: [test] Fix threadlocal_address.cpp after D129833
Older Darwin does not support thread_local:
error: thread-local storage is not supported for the current target
thread_local int j = 0;
Added:
Modified:
clang/test/CodeGenCXX/threadlocal_address.cpp
Removed:
################################################################################
diff --git a/clang/test/CodeGenCXX/threadlocal_address.cpp b/clang/test/CodeGenCXX/threadlocal_address.cpp
index d3b17796c3ad..a55b1ee6e08d 100644
--- a/clang/test/CodeGenCXX/threadlocal_address.cpp
+++ b/clang/test/CodeGenCXX/threadlocal_address.cpp
@@ -1,7 +1,7 @@
// Test that the use of thread local variables would be wrapped by @llvm.threadlocal.address intrinsics.
-// RUN: %clang_cc1 -std=c++11 -emit-llvm -triple %itanium_abi_triple -o - %s -disable-llvm-passes | FileCheck %s
-// RUN: %clang_cc1 -std=c++11 -emit-llvm -triple %itanium_abi_triple -o - -O1 %s | FileCheck %s -check-prefix=CHECK-O1
-// RUN: %clang_cc1 -std=c++11 -no-opaque-pointers -emit-llvm -triple %itanium_abi_triple -o - %s -disable-llvm-passes | FileCheck %s -check-prefix=CHECK-NOOPAQUE
+// RUN: %clang_cc1 -std=c++11 -emit-llvm -triple x86_64 -o - %s -disable-llvm-passes | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -emit-llvm -triple aarch64 -o - -O1 %s | FileCheck %s -check-prefix=CHECK-O1
+// RUN: %clang_cc1 -std=c++11 -no-opaque-pointers -emit-llvm -triple x86_64 -o - %s -disable-llvm-passes | FileCheck %s -check-prefix=CHECK-NOOPAQUE
thread_local int i;
int g() {
i++;
More information about the cfe-commits
mailing list