minix/external/bsd/llvm/dist/clang/test/FixIt/fixit-nsstring-compare.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

22 lines
442 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s
// rdar://12716301
typedef unsigned char BOOL;
@protocol NSObject
- (BOOL)isEqual:(id)object;
@end
@interface NSString<NSObject>
@end
int main() {
NSString *stringA = @"stringA";
BOOL comparison = stringA==@"stringB";
}
// CHECK: {16:21-16:21}:"["
// CHECK: {16:28-16:30}:" isEqual:"
// CHECK: {16:40-16:40}:"]"