From: Steve Naroff Date: Fri, 19 Oct 2007 00:05:15 +0000 (+0000) Subject: Include a simple test case for the previous commit... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54d02e9a913af2945ea063edfda3070381956df5;p=clang Include a simple test case for the previous commit... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43158 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/missing-string-interface.m b/test/Sema/missing-string-interface.m new file mode 100644 index 0000000000..f96fb4c2e4 --- /dev/null +++ b/test/Sema/missing-string-interface.m @@ -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'}} +