summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/objc-array-literal.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/objc-array-literal.m')
-rw-r--r--clang/test/SemaObjC/objc-array-literal.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/objc-array-literal.m b/clang/test/SemaObjC/objc-array-literal.m
index 281994a758b..c0a0c67d442 100644
--- a/clang/test/SemaObjC/objc-array-literal.m
+++ b/clang/test/SemaObjC/objc-array-literal.m
@@ -67,3 +67,11 @@ id radar15147688() {
x = @[ @"stuff", @"hello" "world"]; // expected-warning {{concatenated NSString literal for an NSArray expression}}
return x;
}
+
+enum XXXYYYZZZType { XXXYYYZZZTypeAny }; // expected-note {{'XXXYYYZZZTypeAny' declared here}}
+void foo() {
+ NSArray *array = @[
+ @(XXXYYYZZZTypeA), // expected-error {{use of undeclared identifier 'XXXYYYZZZTypeA'; did you mean 'XXXYYYZZZTypeAny'}}
+ @(XXXYYYZZZTypeSomethingSomething) // expected-error {{use of undeclared identifier 'XXXYYYZZZTypeSomethingSomething'}}
+ ];
+}
OpenPOWER on IntegriCloud