[llvm-commits] CVS: llvm/test/CFrontend/2007-02-16-WritableStrings.c
Chris Lattner
sabre at nondot.org
Fri Feb 16 21:07:59 PST 2007
Changes in directory llvm/test/CFrontend:
2007-02-16-WritableStrings.c added (r1.1)
---
Log message:
new testcase for -fwritable-strings
---
Diffs of the changes: (+7 -0)
2007-02-16-WritableStrings.c | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/test/CFrontend/2007-02-16-WritableStrings.c
diff -c /dev/null llvm/test/CFrontend/2007-02-16-WritableStrings.c:1.1
*** /dev/null Fri Feb 16 23:07:50 2007
--- llvm/test/CFrontend/2007-02-16-WritableStrings.c Fri Feb 16 23:07:40 2007
***************
*** 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";
+
More information about the llvm-commits
mailing list