[clang] [clang][Darwin] Add test checking for tls support on xros target triples (PR #141170)
Cyndy Ishida via cfe-commits
cfe-commits at lists.llvm.org
Thu May 22 18:00:42 PDT 2025
https://github.com/cyndyishida created https://github.com/llvm/llvm-project/pull/141170
None
>From 845121fefce0243426d640989f6fdc7008f0b2ef Mon Sep 17 00:00:00 2001
From: Cyndy Ishida <cyndy_ishida at apple.com>
Date: Thu, 22 May 2025 17:58:00 -0700
Subject: [PATCH] [clang][Darwin] Add test checking for tls support on xros
target triples
---
clang/test/Sema/darwin-tls.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/clang/test/Sema/darwin-tls.c b/clang/test/Sema/darwin-tls.c
index 9a41c5c6a995a..4f80cb72779d8 100644
--- a/clang/test/Sema/darwin-tls.c
+++ b/clang/test/Sema/darwin-tls.c
@@ -13,6 +13,8 @@
// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple thumbv7k-apple-watchos2.0 %s 2>&1 | FileCheck %s --check-prefix TLS
// RUN: not %clang_cc1 -fsyntax-only -triple i386-apple-watchos2.0-simulator %s 2>&1 | FileCheck %s --check-prefix NO-TLS
// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple i386-apple-watchos3.0-simulator %s 2>&1 | FileCheck %s --check-prefix TLS
+// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple arm64-apple-xros %s 2>&1 | FileCheck %s --check-prefix TLS
+// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple arm64-apple-xros-simulator %s 2>&1 | FileCheck %s --check-prefix TLS
__thread int a;
More information about the cfe-commits
mailing list