summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/missing-string-interface.m
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-21 21:44:18 +0000
committerChris Lattner <sabre@nondot.org>2008-06-21 21:44:18 +0000
commit091f698d29ff1262fcd2c39eafec70e3ba2711a5 (patch)
tree1f94845500c0ba42733478ad99c053b33fdf323d /clang/test/Sema/missing-string-interface.m
parent0f2b47173088cb17b793fd0f6b427e69dbe067a9 (diff)
downloadbcm5719-llvm-091f698d29ff1262fcd2c39eafec70e3ba2711a5.tar.gz
bcm5719-llvm-091f698d29ff1262fcd2c39eafec70e3ba2711a5.zip
"this patch adds code generation hooks for Objective-C constant strings. It also modifies Sema so that Objective-C constant strings are treated as untyped objects if the interface for the constant string class can not be found. This is consistent with Apple GCC. I thought it was consistent with GNU GCC, since this was causing failures when trying to compile GNUstep with (GNU) GCC, but it appears that this is not the case when attempting to produce a simple test case to demonstrate it. Possibly there is a way of making the error go away, but I haven't found out what it is yet."
Patch by David Chisnall! llvm-svn: 52599
Diffstat (limited to 'clang/test/Sema/missing-string-interface.m')
-rw-r--r--clang/test/Sema/missing-string-interface.m7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/test/Sema/missing-string-interface.m b/clang/test/Sema/missing-string-interface.m
deleted file mode 100644
index f96fb4c2e4a..00000000000
--- a/clang/test/Sema/missing-string-interface.m
+++ /dev/null
@@ -1,7 +0,0 @@
-// 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'}}
-
OpenPOWER on IntegriCloud