diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr60071.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr60071.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr60071.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr60071.c new file mode 100644 index 000000000..8bc2c1f4f --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr60071.c @@ -0,0 +1,8 @@ +int +foo (int cls, int sign) +{ + if (__builtin_expect (cls == 4, 0)) + return (sign + ? (-((int) ((~(unsigned)0) >> 1)))-1 + : ((int) ((~(unsigned)0) >> 1))); +} |