mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
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
This commit is contained in:
parent
9ac08d6a67
commit
b1789b003c
11
test/FrontendC/2009-02-27-CString.c
Normal file
11
test/FrontendC/2009-02-27-CString.c
Normal file
@ -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";
|
||||
}
|
Loading…
Reference in New Issue
Block a user