new testcase for -fwritable-strings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-17 05:07:40 +00:00
parent 62b20023eb
commit 4b0d93a7b5

View File

@ -0,0 +1,7 @@
// 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";