brintos

brintos / llvm-project-archived public Read only

0
0
Text · 503 B · 8b88a5e Raw
15 lines · plain
1// -Wno-incompatible-pointer-types is needed to disable warning triggered by assigning NSString to NSConstantString2// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -Wno-incompatible-pointer-types %s -o -3 4@class NSString;5 6@interface NSConstantString;7@end8 9 10 11NSConstantString *t0 = @"123";12NSConstantString *t = @"123"     @"4567"; // concat13NSConstantString *t1 = @"123"     @"4567" /* COMMENT */ @"89"; // concat14NSConstantString *t2 = @"123"     @/* COMMENT */ "4567"; // concat15