diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-17 05:07:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-17 05:07:40 +0000 |
commit | 4b0d93a7b5b5e5ad6cdf73526a0a17328dfb3e5f (patch) | |
tree | d99801f5233bb2433c67145b1c181db263be5840 | |
parent | 62b20023eb809b0f63de991ee49a824176c0a864 (diff) |
new testcase for -fwritable-strings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34365 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CFrontend/2007-02-16-WritableStrings.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CFrontend/2007-02-16-WritableStrings.c b/test/CFrontend/2007-02-16-WritableStrings.c new file mode 100644 index 0000000000..f26d50b352 --- /dev/null +++ b/test/CFrontend/2007-02-16-WritableStrings.c @@ -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"; + |