From 2176bbfdff1f38e6f5a11b35d611ea6d339f6d3e Mon Sep 17 00:00:00 2001 From: Till Riedel Date: Mon, 23 Jun 2003 17:14:39 +0000 Subject: [PATCH] Work around different C implentations [r1389] --- testprograms/if_example.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/testprograms/if_example.c b/testprograms/if_example.c index dc4d48d3a..14fa110b5 100644 --- a/testprograms/if_example.c +++ b/testprograms/if_example.c @@ -92,9 +92,14 @@ main(void) /* generate and fill the then block */ r = new_immBlock (); add_in_edge (r, t); - a = new_Sub(get_value(a_pos, mode_Is), - new_Const (mode_Is, new_tarval_from_long (3, mode_Is)), + { + ir_node *b,*c; + c = new_Const (mode_Is, new_tarval_from_long (3, mode_Is)); + b = get_value(a_pos, mode_Is); + a = new_Sub(b, + c, mode_Is); + } set_value (a_pos, a); mature_block (r); -- 2.20.1