Stuart Hastings | 87311bd | 2009-02-27 22:35:12 +0000 | [diff] [blame^] | 1 | /* RUN: %llvmgcc %s -S -o - -emit-llvm | \ |
2 | RUN: egrep {CSTRING SECTION.\*section.\*__TEXT,.\*__cstring} | ||||
3 | XFAIL: * | ||||
4 | TARGET: *-*-darwin* | ||||
5 | END. | ||||
6 | Insure that stings go to the cstring section. This test is | ||||
7 | intended solely for Darwin targets. | ||||
8 | */ | ||||
9 | char *foo() { | ||||
10 | return "this string should go to the CSTRING SECTION"; | ||||
11 | } |