summaryrefslogtreecommitdiff
path: root/test/FrontendC/2009-02-27-CString.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2009-02-27-CString.c')
-rw-r--r--test/FrontendC/2009-02-27-CString.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendC/2009-02-27-CString.c b/test/FrontendC/2009-02-27-CString.c
new file mode 100644
index 0000000000000..7a974eef347fa
--- /dev/null
+++ b/test/FrontendC/2009-02-27-CString.c
@@ -0,0 +1,11 @@
+/* RUN: %llvmgcc %s -S -o - -emit-llvm | \
+ RUN: egrep {CSTRING SECTION.\*section.\*__TEXT,.\*__cstring}
+ XFAIL: *
+ XTARGET: 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";
+}