aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendC/2009-02-27-CString.c
blob: 17441e15e9b82eee7d2934acdd046fc17cd6c746 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* RUN: %llvmgcc %s -S -o - -emit-llvm | \
   RUN: egrep {CSTRING SECTION.\*section.\*__TEXT,.\*__cstring}
   XFAIL: linux,ia64,alpha,sparc
   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";
}