summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20030708-1.c
blob: 5a693d8f75cea1202e636f169a04ea82bfeb789b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR 10795.  */

/* ix86_expand_carry_flag_compare() in i386.c swapped the comparison
   operands without checking that the compare instruction, cmpl, would
   accept the swapped operands.  */

extern const char a[];

int
foo (const char *p)
{
  return (p > a) ? 0 : 2;
}