llvm-6502/test/CFrontend/2007-02-16-WritableStrings.c
Chris Lattner 4b0d93a7b5 new testcase for -fwritable-strings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34365 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-17 05:07:40 +00:00

8 lines
219 B
C

// Test the -fwritable-strings option.
// RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | grep 'internal global' &&
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep 'internal constant'
char *X = "foo";