summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2002-12-15-GlobalConstantTest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2002-12-15-GlobalConstantTest.c')
-rw-r--r--test/FrontendC/2002-12-15-GlobalConstantTest.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendC/2002-12-15-GlobalConstantTest.c b/test/FrontendC/2002-12-15-GlobalConstantTest.c
new file mode 100644
index 0000000..a5a679d
--- /dev/null
+++ b/test/FrontendC/2002-12-15-GlobalConstantTest.c
@@ -0,0 +1,8 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
+
+const char *W = "foo";
+const int X = 7;
+int Y = 8;
+const char * const Z = "bar";
+