PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 991112-1.c
blobe43c7beeb87673a414913bcf58e189f5367c672b
1 /* This code was miscompiled at -O3 on x86.
2 Reported by Jim Meyering; distilled from bash. */
4 int rl_show_char (int c) { return 0; }
6 int rl_character_len (int c, int pos)
8 return isprint (c) ? 1 : 2;
11 int main(void)
13 int (*x)(int, int) = rl_character_len;
14 if (x('a', 1) != 1)
15 abort();
16 if (x('\002', 1) != 2)
17 abort();
18 return 0;