From c08336adc36bef512bb561fe31b92cb82e2fd1dd Mon Sep 17 00:00:00 2001 From: Stuart Hastings Date: Fri, 27 Feb 2009 22:35:12 +0000 Subject: Testcase to insure C strings go to the cstring section. Darwin-specific. llvm-svn: 65655 --- llvm/test/FrontendC/2009-02-27-CString.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 llvm/test/FrontendC/2009-02-27-CString.c (limited to 'llvm/test/FrontendC/2009-02-27-CString.c') diff --git a/llvm/test/FrontendC/2009-02-27-CString.c b/llvm/test/FrontendC/2009-02-27-CString.c new file mode 100644 index 00000000000..530f98e044a --- /dev/null +++ b/llvm/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: * + 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"; +} -- cgit v1.2.3