summaryrefslogtreecommitdiff
path: root/test/cminor/stopcopy.cmp
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-10-06 15:46:47 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-10-06 15:46:47 +0000
commitf7693b3d897b90fd3bc2533be002dc0bdcd9f6c2 (patch)
tree93ea9491693324d2d690c4236a2c88c3b461e225 /test/cminor/stopcopy.cmp
parent261ef24f7fd2ef443f73c468b9b1fa496371f3bf (diff)
Merge of branch seq-and-or. See Changelog for details.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2059 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'test/cminor/stopcopy.cmp')
-rw-r--r--test/cminor/stopcopy.cmp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cminor/stopcopy.cmp b/test/cminor/stopcopy.cmp
index 9ac39be..eb2b3e1 100644
--- a/test/cminor/stopcopy.cmp
+++ b/test/cminor/stopcopy.cmp
@@ -174,8 +174,9 @@ extern "malloc" : int -> int
var from, to;
from = "malloc"(hsize) : int -> int;
+ if (from == 0) return -1;
to = "malloc"(hsize) : int -> int;
- if (from == 0 || to == 0) return -1;
+ if (to == 0) return -1;
int32["fromspace_start_ptr"] = from;
int32["fromspace_end_ptr"] = from + hsize;
int32["tospace_start_ptr"] = to;