diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-26 00:57:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-26 00:57:24 +0000 |
commit | 6ac6ddc861ccc42f3025c4209b7c031bcd8f43f9 (patch) | |
tree | a2654e6a3604cc456975e7183f4a31abb89f90d6 /test/SemaObjC/objc-string.m | |
parent | 62f5f7ffad57e0c2af2b308af3735351505937cb (diff) |
move all objc sema tests into a new SemaObjC directory. Next step is to
remove the objc- prefix from the tests that use it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54084 91177308-0d34-0410-b5e6-96231b3b80d8
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}} + |