[clang][nfc]Disable warning triggered in tests (#159216)

This commit is contained in:
Vy Nguyen 2025-09-16 20:59:59 -04:00 committed by GitHub
parent 82acc31fd4
commit 87bceae3fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o -
// -Wno-incompatible-pointer-types is needed to disable warning triggered by assigning NSString to NSConstantString
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -Wno-incompatible-pointer-types %s -o -
@class NSString;
@ -11,4 +12,3 @@ NSConstantString *t0 = @"123";
NSConstantString *t = @"123" @"4567"; // concat
NSConstantString *t1 = @"123" @"4567" /* COMMENT */ @"89"; // concat
NSConstantString *t2 = @"123" @/* COMMENT */ "4567"; // concat