]> granicus.if.org Git - clang/commitdiff
Include a simple test case for the previous commit...
authorSteve Naroff <snaroff@apple.com>
Fri, 19 Oct 2007 00:05:15 +0000 (00:05 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 19 Oct 2007 00:05:15 +0000 (00:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43158 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/missing-string-interface.m [new file with mode: 0644]

diff --git a/test/Sema/missing-string-interface.m b/test/Sema/missing-string-interface.m
new file mode 100644 (file)
index 0000000..f96fb4c
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: clang %s -verify -fsyntax-only
+
+@class NSString;
+
+// GCC considers this an error, so clang will...
+NSString *s = @"123"; // expected-error: {{cannot find interface declaration for 'NSConstantString'}}
+