aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-05-19 20:06:09 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2000-05-19 20:06:09 +0200
commit0d9a7d79ac33778c100ef6fbf600901cf7de0c5f (patch)
tree1e68b5fabdda2cffb26efb36eb76dc6e832db459
parent6c80c45e3010bfe992b41dd8800d2c4b65e0d5ef (diff)
downloadgcc-0d9a7d79ac33778c100ef6fbf600901cf7de0c5f.zip
gcc-0d9a7d79ac33778c100ef6fbf600901cf7de0c5f.tar.gz
gcc-0d9a7d79ac33778c100ef6fbf600901cf7de0c5f.tar.bz2
20000519-1.c: Testcase from Ulrich Drepper which fails with SSA.
2000-05-19 Andreas Jaeger <aj@suse.de> * gcc.c-torture/execute/20000519-1.c: Testcase from Ulrich Drepper which fails with SSA. From-SVN: r34029
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000519-1.c28
2 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7f28587..7d40447 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,8 @@
2000-05-19 Andreas Jaeger <aj@suse.de>
+ * gcc.c-torture/execute/20000519-1.c: Testcase from Ulrich Drepper
+ which fails with SSA.
+
* lib/c-torture.exp: Also test with -O3 -fssa.
2000-05-18 Michael Meissner <meissner@redhat.com>
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000519-1.c b/gcc/testsuite/gcc.c-torture/execute/20000519-1.c
new file mode 100644
index 0000000..ee107d3
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20000519-1.c
@@ -0,0 +1,28 @@
+#include <stdarg.h>
+
+int
+bar (int a, va_list ap)
+{
+ int b;
+
+ do
+ b = va_arg (ap, int);
+ while (b > 10);
+
+ return a + b;
+}
+
+int
+foo (int a, ...)
+{
+ va_list ap;
+
+ va_start (ap, a);
+ return bar (a, ap);
+}
+
+int
+main ()
+{
+ return foo (1, 2, 3);
+}