]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 14 Oct 2002 21:24:25 +0000 (21:24 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 14 Oct 2002 21:24:25 +0000 (21:24 +0000)
'gcc-3_2-branch'.

From-SVN: r58137

gcc/testsuite/gcc.dg/20021014-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/20021014-1.c b/gcc/testsuite/gcc.dg/20021014-1.c
new file mode 100644 (file)
index 0000000..9194aab
--- /dev/null
@@ -0,0 +1,21 @@
+/* { dg-do run } */
+/* { dg-options "-O2 -p" } */
+
+extern void abort (void);
+extern void exit (int);
+
+int foo (void)
+{
+  static int bar (int x)
+  {
+    return x + 3;
+  }
+  return bar (1) + bar (2);
+}
+
+int main (void)
+{
+  if (foo () != 9)
+    abort ();
+  exit (0);
+}