diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/rmsc.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/rmsc.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/rmsc.c b/gcc/testsuite/gcc.c-torture/compile/rmsc.c new file mode 100644 index 00000000000..5c97c6dae14 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/rmsc.c @@ -0,0 +1,46 @@ + +cc1 (x, y) + int x, y; +{ + int z; + z = x - y; + if (x >= y) + return z + 1; + else + return z + 0; +} + +cc2 (x, y) + int x, y; +{ + int z; + + z = x - y; + if (z >= 0) + return z + 1; + else + return z + 0; +} + +cc3 (x, y) + unsigned x, y; +{ + unsigned z; + z = x - y; + if (x >= y) + return z + 1; + else + return z + 0; +} + +cc4 (x, y) + unsigned x, y; +{ + unsigned z; + + z = x - y; + if (z >= 0) + return z + 1; + else + return z + 0; +} |