diff options
author | Stuart Hastings <stuart@apple.com> | 2009-02-27 22:35:12 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2009-02-27 22:35:12 +0000 |
commit | 87311bd354f5ac0a2413236e8bc0818a9019c560 (patch) | |
tree | 6a66c8149da9967b66dd9ef1a353bf3d8a4f31ea | |
parent | 688a19fa3d7f9b5d746d402408a97de51af00b27 (diff) | |
download | external_llvm-87311bd354f5ac0a2413236e8bc0818a9019c560.zip external_llvm-87311bd354f5ac0a2413236e8bc0818a9019c560.tar.gz external_llvm-87311bd354f5ac0a2413236e8bc0818a9019c560.tar.bz2 |
Testcase to insure C strings go to the cstring
section. Darwin-specific.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65655 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/FrontendC/2009-02-27-CString.c | 11 |
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 0000000..530f98e --- /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: * + 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"; +} |