2 991112-1.c from the execute part of the gcc torture tests.
9 #pragma disable_warning 85
14 /* This code was miscompiled at -O3 on x86.
15 Reported by Jim Meyering; distilled from bash. */
17 int rl_show_char (int c
) { return 0; }
19 int rl_character_len (int c
, int pos
)
21 return isprint (c
) ? 1 : 2;
25 testTortureExecute (void)
27 #if !defined (__SDCC_hc08) && !defined (__SDCC_s08) && !defined(__SDCC_mos6502) && !defined(__SDCC_mos65c02) && !defined (__SDCC_ds390) && !defined (__SDCC_mcs51) && !defined (__SDCC_pdk14) && !defined (__SDCC_pdk15)
28 int (*x
)(int, int) = rl_character_len
;
31 if (x('\002', 1) != 2)