summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr14692.c
diff options
context:
space:
mode:
authorfalk <falk@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-08 23:17:23 +0000
committerfalk <falk@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-08 23:17:23 +0000
commitf2dd451b0acda57f47a5e7a0ec3b378c55a4bdc3 (patch)
tree7385bdf57ffe89bf7268d9ccbd4db0e402a95731 /gcc/testsuite/gcc.c-torture/compile/pr14692.c
parentf045d41d93ebf872be77596be480d9b0352f0cca (diff)
downloadgcc-f2dd451b0acda57f47a5e7a0ec3b378c55a4bdc3.tar.gz
PR tree-optimization/12517
* gcc.c-torture/compile/pr12517.c: New test. PR tree-optimization/12578 * gcc.c-torture/compile/pr12578.c: New test. PR tree-optimization/12899 * gcc.c-torture/compile/pr12899.c: New test. PR rtl-optimization/14692 * gcc.c-torture/compile/pr14692.c: New test. PR tree-optimization/16461 * gcc.c-torture/compile/pr16461.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85698 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr14692.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr14692.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr14692.c b/gcc/testsuite/gcc.c-torture/compile/pr14692.c
new file mode 100644
index 00000000000..3f36b3ccb2b
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr14692.c
@@ -0,0 +1,14 @@
+/* PR rtl-optimization/14692 */
+
+void assert_failed (void);
+void eidecpos_1 (unsigned char *pos, long n)
+{
+ int i;
+ for (i = 0; i < n; i++)
+ {
+ const unsigned char *dc_ptr1 = pos;
+ pos--;
+ if (dc_ptr1 - pos == 1)
+ assert_failed ();
+ }
+}