Author: Shengxin Pei
Date: 2026-08-03T16:57:40Z
New Revision: b3fe562bc655e0532beb423ed9bdbfd76a7e881a

URL: 
https://github.com/llvm/llvm-project/commit/b3fe562bc655e0532beb423ed9bdbfd76a7e881a
DIFF: 
https://github.com/llvm/llvm-project/commit/b3fe562bc655e0532beb423ed9bdbfd76a7e881a.diff

LOG: [Clang][test] Relocate __block regression test to block-misc.c NFC 
(#213710)

Added: 
    

Modified: 
    clang/test/Sema/block-misc.c

Removed: 
    clang/test/Sema/gh183974.c


################################################################################
diff  --git a/clang/test/Sema/block-misc.c b/clang/test/Sema/block-misc.c
index 6cea409cb684d..204731bb1e738 100644
--- a/clang/test/Sema/block-misc.c
+++ b/clang/test/Sema/block-misc.c
@@ -145,6 +145,7 @@ void test15(void) {
 }
 
 __block int test16i;  // expected-error {{'__block' is not allowed on a 
nonlocal variable}}
+int test16i; // This line was introduced by GH183974
 
 void test16(__block int i) { // expected-error {{'__block' is not allowed on a 
nonlocal variable}}
   int size = 5;

diff  --git a/clang/test/Sema/gh183974.c b/clang/test/Sema/gh183974.c
deleted file mode 100644
index 0e1c519c5ec90..0000000000000
--- a/clang/test/Sema/gh183974.c
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: %clang_cc1 -fblocks -fsyntax-only -verify %s
-
-__block int x; // expected-error {{'__block' is not allowed on a nonlocal 
variable}}
-
-int x;


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to