[cfe-commits] r43158 - /cfe/trunk/test/Sema/missing-string-interface.m
Steve Naroff
snaroff at apple.com
Thu Oct 18 17:05:15 PDT 2007
Author: snaroff
Date: Thu Oct 18 19:05:15 2007
New Revision: 43158
URL: http://llvm.org/viewvc/llvm-project?rev=43158&view=rev
Log:
Include a simple test case for the previous commit...
Added:
cfe/trunk/test/Sema/missing-string-interface.m
Added: cfe/trunk/test/Sema/missing-string-interface.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/missing-string-interface.m?rev=43158&view=auto
==============================================================================
--- cfe/trunk/test/Sema/missing-string-interface.m (added)
+++ cfe/trunk/test/Sema/missing-string-interface.m Thu Oct 18 19:05:15 2007
@@ -0,0 +1,7 @@
+// RUN: clang %s -verify -fsyntax-only
+
+ at class NSString;
+
+// GCC considers this an error, so clang will...
+NSString *s = @"123"; // expected-error: {{cannot find interface declaration for 'NSConstantString'}}
+
More information about the cfe-commits
mailing list