xref: /minix3/external/bsd/llvm/dist/clang/test/FixIt/fixit-nsstring-compare.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin10  -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s
2*f4a2713aSLionel Sambuc// rdar://12716301
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuctypedef unsigned char BOOL;
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@protocol NSObject
7*f4a2713aSLionel Sambuc- (BOOL)isEqual:(id)object;
8*f4a2713aSLionel Sambuc@end
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambuc@interface NSString<NSObject>
11*f4a2713aSLionel Sambuc@end
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambucint main() {
14*f4a2713aSLionel Sambuc  NSString *stringA = @"stringA";
15*f4a2713aSLionel Sambuc
16*f4a2713aSLionel Sambuc  BOOL comparison = stringA==@"stringB";
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel Sambuc}
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambuc// CHECK: {16:21-16:21}:"["
21*f4a2713aSLionel Sambuc// CHECK: {16:28-16:30}:" isEqual:"
22*f4a2713aSLionel Sambuc// CHECK: {16:40-16:40}:"]"
23