summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/objc-string.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/objc-string.m')
-rw-r--r--clang/test/Sema/objc-string.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/test/Sema/objc-string.m b/clang/test/Sema/objc-string.m
index c73948292d8..d1d797348d2 100644
--- a/clang/test/Sema/objc-string.m
+++ b/clang/test/Sema/objc-string.m
@@ -1,11 +1,15 @@
// RUN: clang %s -verify -fsyntax-only
+// RUN: clang %s -verify -fsyntax-only -DDECLAREIT
+// a declaration of NSConstantString is not required.
+#ifdef DECLAREIT
@interface NSConstantString;
@end
+#endif
-NSConstantString *s = @"123"; // simple
-NSConstantString *t = @"123" @"456"; // concat
-NSConstantString *u = @"123" @ blah; // expected-error: {{unexpected token}}
+id s = @"123"; // simple
+id t = @"123" @"456"; // concat
+id u = @"123" @ blah; // expected-error: {{unexpected token}}
OpenPOWER on IntegriCloud