From 009b1c42aa6266385f2c37e227516b24077e6dd7 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:52:33 +0000 Subject: Import LLVM, at r72732. --- test/FrontendC/2009-02-27-CString.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/FrontendC/2009-02-27-CString.c (limited to 'test/FrontendC/2009-02-27-CString.c') 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"; +} -- cgit v1.2.3