aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2006-11-01 13:09:25 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2006-11-01 12:09:25 +0000
commit36c90fd27a8aa20f7380bb5f235a88f69f689f3f (patch)
tree454434df9e697fad26f4eb5b1d89a125ffe7594d /gcc
parentcb953056bb913320c55bc4de118d644e42e07327 (diff)
downloadgcc-36c90fd27a8aa20f7380bb5f235a88f69f689f3f.zip
gcc-36c90fd27a8aa20f7380bb5f235a88f69f689f3f.tar.gz
gcc-36c90fd27a8aa20f7380bb5f235a88f69f689f3f.tar.bz2
20061101-1.c: New test.
* gcc.c-torture/execute/20061101-1.c: New test. From-SVN: r118377
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20061101-1.c32
2 files changed, 36 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 260f234..dece2c3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2006-11-01 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * gcc.c-torture/execute/20061101-1.c: New test.
+
2006-11-01 Richard Guenther <rguenther@suse.de>
* testsuite/gcc.target/i386/fpprec-1.c: New testcase.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20061101-1.c b/gcc/testsuite/gcc.c-torture/execute/20061101-1.c
new file mode 100644
index 0000000..2351728
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20061101-1.c
@@ -0,0 +1,32 @@
+/* PR rtl-optimization/28970 */
+/* Origin: Peter Bergner <bergner@vnet.ibm.com> */
+
+extern void abort (void);
+
+int tar (int i)
+{
+ if (i != 36863)
+ abort ();
+
+ return -1;
+}
+
+void bug(int q, int bcount)
+{
+ int j = 0;
+ int outgo = 0;
+
+ while(j != -1)
+ {
+ outgo++;
+ if (outgo > q-1)
+ outgo = q-1;
+ j = tar (outgo*bcount);
+ }
+}
+
+int main(void)
+{
+ bug(5, 36863);
+ return 0;
+}