[llvm-commits] [llvm] r65655 - /llvm/trunk/test/FrontendC/2009-02-27-CString.c

Stuart Hastings stuart at apple.com
Fri Feb 27 14:35:27 PST 2009


Author: stuart
Date: Fri Feb 27 16:35:12 2009
New Revision: 65655

URL: http://llvm.org/viewvc/llvm-project?rev=65655&view=rev
Log:
Testcase to insure C strings go to the cstring
section. Darwin-specific.

Added:
    llvm/trunk/test/FrontendC/2009-02-27-CString.c

Added: llvm/trunk/test/FrontendC/2009-02-27-CString.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-02-27-CString.c?rev=65655&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/2009-02-27-CString.c (added)
+++ llvm/trunk/test/FrontendC/2009-02-27-CString.c Fri Feb 27 16:35:12 2009
@@ -0,0 +1,11 @@
+/* RUN: %llvmgcc %s -S -o - -emit-llvm | \
+   RUN: egrep {CSTRING SECTION.\*section.\*__TEXT,.\*__cstring}
+   XFAIL: *
+   TARGET: *-*-darwin*
+   END.
+   Insure that stings go to the cstring section.  This test is
+   intended solely for Darwin targets.
+ */
+char *foo() {
+  return "this string should go to the CSTRING SECTION";
+}





More information about the llvm-commits mailing list