[clang] 977eb3f - [clang][test] Use `FileCheck` in `Rewriter/objc-modern-getclass-proto.mm` (#204272)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 05:41:40 PDT 2026


Author: Fady Farag
Date: 2026-06-24T08:41:36-04:00
New Revision: 977eb3f0ce6c89c0de7cdf82d6ff284cd5667dd5

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

LOG: [clang][test] Use `FileCheck` in `Rewriter/objc-modern-getclass-proto.mm` (#204272)

The test had `CHECK` directives that were never executed because no
`RUN` line invoked `FileCheck` on the output.

The test also used a fragile runtime, which invoked the fragile rewriter
instead of the modern one the test was written for.

Switch to a non-fragile runtime so the modern rewriter runs as the test
intended.

Added: 
    

Modified: 
    clang/test/Rewriter/objc-modern-getclass-proto.mm

Removed: 
    


################################################################################
diff  --git a/clang/test/Rewriter/objc-modern-getclass-proto.mm b/clang/test/Rewriter/objc-modern-getclass-proto.mm
index da417477aa12b..81947460b4cfb 100644
--- a/clang/test/Rewriter/objc-modern-getclass-proto.mm
+++ b/clang/test/Rewriter/objc-modern-getclass-proto.mm
@@ -1,5 +1,6 @@
 // RUN: %clang_cc1 -E %s -o %t.mm
-// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %t.mm -o %t-rw.cpp
+// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-10.7 %t.mm -o %t-rw.cpp
+// RUN: FileCheck --input-file=%t-rw.cpp %s
 
 @interface I @end
 @implementation I @end


        


More information about the cfe-commits mailing list