Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.c-torture/execute/20040409-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/gcc.c-torture/execute/20040409-1.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/testsuite/gcc.c-torture/execute/20040409-1.c Thu Oct 25 07:37:49 2018 +0900 @@ -12,21 +12,11 @@ return x ^ (unsigned int)INT_MIN; } -int test2(int x) -{ - return x + INT_MIN; -} - unsigned int test2u(unsigned int x) { return x + (unsigned int)INT_MIN; } -int test3(int x) -{ - return x - INT_MIN; -} - unsigned int test3u(unsigned int x) { return x - (unsigned int)INT_MIN; @@ -44,24 +34,12 @@ return x ^ y; } -int test5(int x) -{ - int y = INT_MIN; - return x + y; -} - unsigned int test5u(unsigned int x) { unsigned int y = (unsigned int)INT_MIN; return x + y; } -int test6(int x) -{ - int y = INT_MIN; - return x - y; -} - unsigned int test6u(unsigned int x) { unsigned int y = (unsigned int)INT_MIN; @@ -74,16 +52,8 @@ { if (test1(a) != b) abort(); - if (test2(a) != b) - abort(); - if (test3(a) != b) - abort(); if (test4(a) != b) abort(); - if (test5(a) != b) - abort(); - if (test6(a) != b) - abort(); } void testu(unsigned int a, unsigned int b)