diff options
Diffstat (limited to 'test/SemaObjC/objc-string.m')
-rw-r--r-- | test/SemaObjC/objc-string.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaObjC/objc-string.m b/test/SemaObjC/objc-string.m new file mode 100644 index 0000000000..e3974ad8f6 --- /dev/null +++ b/test/SemaObjC/objc-string.m @@ -0,0 +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 + + + +id s = @"123"; // simple +id t = @"123" @"456"; // concat +id u = @"123" @ blah; // expected-error: {{unexpected token}} + |