https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/191843
>From c79d2e7ff862c002f1d60294bfef8572702d1e13 Mon Sep 17 00:00:00 2001 From: Sean Perry <[email protected]> Date: Wed, 8 Apr 2026 14:12:52 -0400 Subject: [PATCH 1/3] Update test cases for z/OS --- clang/test/CodeGen/2006-01-23-FileScopeAsm.c | 1 + clang/test/CodeGen/asm_incbin.c | 1 + clang/test/Sema/warn-lifetime-safety-noescape.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/clang/test/CodeGen/2006-01-23-FileScopeAsm.c b/clang/test/CodeGen/2006-01-23-FileScopeAsm.c index 472b46496710f..48c3c369036b9 100644 --- a/clang/test/CodeGen/2006-01-23-FileScopeAsm.c +++ b/clang/test/CodeGen/2006-01-23-FileScopeAsm.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s +// UNSUPPORTED: target={{.*}}-zos{{.*}} // CHECK: module asm "foo1" __asm__ ("foo1"); diff --git a/clang/test/CodeGen/asm_incbin.c b/clang/test/CodeGen/asm_incbin.c index 9ad447a1dfc98..6234eea1d6738 100644 --- a/clang/test/CodeGen/asm_incbin.c +++ b/clang/test/CodeGen/asm_incbin.c @@ -1,3 +1,4 @@ +// UNSUPPORTED: target={{.*}}-zos{{.*}} // RUN: split-file %s %t //--- foo.h //--- tu.c diff --git a/clang/test/Sema/warn-lifetime-safety-noescape.cpp b/clang/test/Sema/warn-lifetime-safety-noescape.cpp index f233ec546faa5..00369c7552ff6 100644 --- a/clang/test/Sema/warn-lifetime-safety-noescape.cpp +++ b/clang/test/Sema/warn-lifetime-safety-noescape.cpp @@ -133,6 +133,7 @@ void escape_through_static_local(int *data [[clang::noescape]]) { // expected-wa static_local = data; } +#if __has_feature(cxx_thread_local) thread_local int *thread_local_storage; // expected-note {{escapes to this global storage}} void escape_through_thread_local(int *data [[clang::noescape]]) { // expected-warning {{parameter is marked [[clang::noescape]] but escapes}} @@ -141,6 +142,7 @@ void escape_through_thread_local(int *data [[clang::noescape]]) { // expected-wa // undesired behavior in most cases. thread_local_storage = data; } +#endif struct ObjConsumer { void escape_through_member(const MyObj& in [[clang::noescape]]) { // expected-warning {{parameter is marked [[clang::noescape]] but escapes}} >From 9f133d764db0db7a2d65b531e3d2622538ca7ce3 Mon Sep 17 00:00:00 2001 From: Sean Perry <[email protected]> Date: Mon, 13 Apr 2026 12:10:09 -0400 Subject: [PATCH 2/3] revert previous change --- clang/test/Sema/warn-lifetime-safety-noescape.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/test/Sema/warn-lifetime-safety-noescape.cpp b/clang/test/Sema/warn-lifetime-safety-noescape.cpp index 00369c7552ff6..f233ec546faa5 100644 --- a/clang/test/Sema/warn-lifetime-safety-noescape.cpp +++ b/clang/test/Sema/warn-lifetime-safety-noescape.cpp @@ -133,7 +133,6 @@ void escape_through_static_local(int *data [[clang::noescape]]) { // expected-wa static_local = data; } -#if __has_feature(cxx_thread_local) thread_local int *thread_local_storage; // expected-note {{escapes to this global storage}} void escape_through_thread_local(int *data [[clang::noescape]]) { // expected-warning {{parameter is marked [[clang::noescape]] but escapes}} @@ -142,7 +141,6 @@ void escape_through_thread_local(int *data [[clang::noescape]]) { // expected-wa // undesired behavior in most cases. thread_local_storage = data; } -#endif struct ObjConsumer { void escape_through_member(const MyObj& in [[clang::noescape]]) { // expected-warning {{parameter is marked [[clang::noescape]] but escapes}} >From e8bb0bab3ceea097e4aa6b5662c0275ec9444332 Mon Sep 17 00:00:00 2001 From: Sean Perry <[email protected]> Date: Tue, 14 Apr 2026 13:52:13 -0400 Subject: [PATCH 3/3] reorder lines --- clang/test/CodeGen/2006-01-23-FileScopeAsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/CodeGen/2006-01-23-FileScopeAsm.c b/clang/test/CodeGen/2006-01-23-FileScopeAsm.c index 48c3c369036b9..877da4fc669e3 100644 --- a/clang/test/CodeGen/2006-01-23-FileScopeAsm.c +++ b/clang/test/CodeGen/2006-01-23-FileScopeAsm.c @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // UNSUPPORTED: target={{.*}}-zos{{.*}} +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s // CHECK: module asm "foo1" __asm__ ("foo1"); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
