diff options
author | YamaArashi <shadow962@live.com> | 2016-04-29 06:03:42 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-29 06:03:42 -0700 |
commit | 536c44e5e9612dc161e3da9d9f3f30e134e8242f (patch) | |
tree | 351aed8dc79f5d2f3bdb647405acb55e0e62b1d7 /gcc/testsuite/gcc.c-torture/execute/dbra-1.c | |
parent | 10f3c226cc227a9fc6d698599b630230be792de8 (diff) |
delete test suite
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/dbra-1.c')
-rwxr-xr-x | gcc/testsuite/gcc.c-torture/execute/dbra-1.c | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/dbra-1.c b/gcc/testsuite/gcc.c-torture/execute/dbra-1.c deleted file mode 100755 index 20ae898..0000000 --- a/gcc/testsuite/gcc.c-torture/execute/dbra-1.c +++ /dev/null @@ -1,95 +0,0 @@ -f1 (a) - long a; -{ - int i; - for (i = 0; i < 10; i++) - { - if (--a == -1) - return i; - } - return -1; -} - -f2 (a) - long a; -{ - int i; - for (i = 0; i < 10; i++) - { - if (--a != -1) - return i; - } - return -1; -} - -f3 (a) - long a; -{ - int i; - for (i = 0; i < 10; i++) - { - if (--a == 0) - return i; - } - return -1; -} - -f4 (a) - long a; -{ - int i; - for (i = 0; i < 10; i++) - { - if (--a != 0) - return i; - } - return -1; -} - -f5 (a) - long a; -{ - int i; - for (i = 0; i < 10; i++) - { - if (++a == 0) - return i; - } - return -1; -} - -f6 (a) - long a; -{ - int i; - for (i = 0; i < 10; i++) - { - if (++a != 0) - return i; - } - return -1; -} - - -main() -{ - if (f1 (5L) != 5) - abort (); - if (f2 (1L) != 0) - abort (); - if (f2 (0L) != 1) - abort (); - if (f3 (5L) != 4) - abort (); - if (f4 (1L) != 1) - abort (); - if (f4 (0L) != 0) - abort (); - if (f5 (-5L) != 4) - abort (); - if (f6 (-1L) != 1) - abort (); - if (f6 (0L) != 0) - abort (); - exit (0); -} |