OSDN Git Service

2000-05-19 Andreas Jaeger <aj@suse.de>
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 May 2000 18:06:09 +0000 (18:06 +0000)
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 May 2000 18:06:09 +0000 (18:06 +0000)
* gcc.c-torture/execute/20000519-1.c: Testcase from Ulrich Drepper
which fails with SSA.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34029 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20000519-1.c [new file with mode: 0644]

index 7f28587..7d40447 100644 (file)
@@ -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 (file)
index 0000000..ee107d3
--- /dev/null
@@ -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);
+}