diff options
Diffstat (limited to 'test/SemaObjC/objc-array-literal.m')
-rw-r--r-- | test/SemaObjC/objc-array-literal.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaObjC/objc-array-literal.m b/test/SemaObjC/objc-array-literal.m index 2971fcc..281994a7 100644 --- a/test/SemaObjC/objc-array-literal.m +++ b/test/SemaObjC/objc-array-literal.m @@ -11,14 +11,14 @@ typedef unsigned int NSUInteger; void checkNSArrayUnavailableDiagnostic() { id obj; - id arr = @[obj]; // expected-error {{NSArray must be available to use Objective-C array literals}} + id arr = @[obj]; // expected-error {{definition of class NSArray must be available to use Objective-C array literals}} } -@class NSArray; +@class NSArray; // expected-note {{forward declaration of class here}} void checkNSArrayFDDiagnostic() { id obj; - id arr = @[obj]; // expected-error {{declaration of 'arrayWithObjects:count:' is missing in NSArray class}} + id arr = @[obj]; // expected-error {{definition of class NSArray must be available to use Objective-C array literals}} } @class NSString; |