summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static7.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/static7.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/static7.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/static7.C b/gcc/testsuite/g++.old-deja/g++.other/static7.C
new file mode 100644
index 000000000..548485b82
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/static7.C
@@ -0,0 +1,10 @@
+// { dg-do run }
+// Origin: Jason Merrill <jason@cygnus.com>
+
+int j = 42;
+
+int main ()
+{
+ static int i = j;
+ return (i != 42);
+}