[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / FixIt / fixit-nsstring-compare.m
blobd74cee5cf1570351bb79dd9006d2f355b53b502f
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10  -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s
2 // rdar://12716301
4 typedef unsigned char BOOL;
6 @protocol NSObject
7 - (BOOL)isEqual:(id)object;
8 @end
10 @interface NSString<NSObject>
11 @end
13 int main(void) {
14   NSString *stringA = @"stringA";
16   BOOL comparison = stringA==@"stringB";
20 // CHECK: {16:21-16:21}:"["
21 // CHECK: {16:28-16:30}:" isEqual:"
22 // CHECK: {16:40-16:40}:"]"