forked from OSchip/llvm-project
Testcase to insure C strings go to the cstring
section. Darwin-specific. llvm-svn: 65655
This commit is contained in:
parent
537fd9337f
commit
c08336adc3
|
@ -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