From: Chris Lattner Date: Sat, 17 Feb 2007 05:07:40 +0000 (+0000) Subject: new testcase for -fwritable-strings X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4b0d93a7b5b5e5ad6cdf73526a0a17328dfb3e5f;p=oota-llvm.git new testcase for -fwritable-strings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34365 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2007-02-16-WritableStrings.c b/test/CFrontend/2007-02-16-WritableStrings.c new file mode 100644 index 00000000000..f26d50b3524 --- /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"; +