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} |
Stuart Hastings | de6582b | 2009-02-28 00:56:37 +0000 | [diff] [blame^] | 3 | XFAIL: linux,ia64,alpha,sparc |
Stuart Hastings | 87311bd | 2009-02-27 22:35:12 +0000 | [diff] [blame] | 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 | } |