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 | c08336adc36bef512bb561fe31b92cb82e2fd1dd (patch) | |
| tree | 04657832ac794023104d9dc789cb4a94c5519e0e /llvm/test/FrontendC/2009-02-27-CString.c | |
| parent | 537fd9337faa103f45bdd089f54805702a24ca1e (diff) | |
| download | bcm5719-llvm-c08336adc36bef512bb561fe31b92cb82e2fd1dd.tar.gz bcm5719-llvm-c08336adc36bef512bb561fe31b92cb82e2fd1dd.zip | |
Testcase to insure C strings go to the cstring
section. Darwin-specific.
llvm-svn: 65655
Diffstat (limited to 'llvm/test/FrontendC/2009-02-27-CString.c')
| -rw-r--r-- | llvm/test/FrontendC/2009-02-27-CString.c | 11 |
1 files changed, 11 insertions, 0 deletions
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"; +} |

