mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 09:21:02 +00:00
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:
parent
62b20023eb
commit
4b0d93a7b5
7
test/CFrontend/2007-02-16-WritableStrings.c
Normal file
7
test/CFrontend/2007-02-16-WritableStrings.c
Normal 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";
|
||||
|
Loading…
Reference in New Issue
Block a user