[clang] [clang][test] Use `FileCheck` in `Rewriter/objc-modern-getclass-proto.mm` (PR #204272)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 16 19:10:17 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Fady Farag (iidmsa)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/204272.diff
1 Files Affected:
- (modified) clang/test/Rewriter/objc-modern-getclass-proto.mm (+2-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/204272
More information about the cfe-commits
mailing list