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