summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-23 20:58:45 +0000
committerChris Lattner <sabre@nondot.org>2002-05-23 20:58:45 +0000
commit88a600a5fde371b6fa9a9aba23891b983efbcfa3 (patch)
tree9aea87158181b9f3f656fdb4ae30764916c49507
parentf08d7436ca2ba4dd50cfe49b36ac6dc4bb7c83cd (diff)
downloadbcm5719-llvm-88a600a5fde371b6fa9a9aba23891b983efbcfa3.tar.gz
bcm5719-llvm-88a600a5fde371b6fa9a9aba23891b983efbcfa3.zip
New testcase, to be inspected by hand
llvm-svn: 2739
-rw-r--r--llvm/test/Regression/CFrontend/2002-05-23-StaticValues.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/2002-05-23-StaticValues.c b/llvm/test/Regression/CFrontend/2002-05-23-StaticValues.c
new file mode 100644
index 00000000000..821dbbb73df
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/2002-05-23-StaticValues.c
@@ -0,0 +1,13 @@
+/* Make sure the frontend is correctly marking static stuff as internal! */
+
+int X;
+static int Y = 12;
+
+static void foo(int Z) {
+ Y = Z;
+}
+
+void *test() {
+ foo(12);
+ return &Y;
+}
OpenPOWER on IntegriCloud