summaryrefslogtreecommitdiff
path: root/test/FrontendC/2007-02-16-WritableStrings.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2007-02-16-WritableStrings.c')
-rw-r--r--test/FrontendC/2007-02-16-WritableStrings.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendC/2007-02-16-WritableStrings.c b/test/FrontendC/2007-02-16-WritableStrings.c
new file mode 100644
index 0000000000000..d11fa089dbab3
--- /dev/null
+++ b/test/FrontendC/2007-02-16-WritableStrings.c
@@ -0,0 +1,8 @@
+// Test the -fwritable-strings option.
+
+// RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \
+// RUN: grep {internal global}
+// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {internal constant}
+
+char *X = "foo";
+