From 536c44e5e9612dc161e3da9d9f3f30e134e8242f Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Fri, 29 Apr 2016 06:03:42 -0700 Subject: delete test suite --- gcc/testsuite/gcc.c-torture/execute/dbra-1.c | 95 ---------------------------- 1 file changed, 95 deletions(-) delete mode 100755 gcc/testsuite/gcc.c-torture/execute/dbra-1.c (limited to 'gcc/testsuite/gcc.c-torture/execute/dbra-1.c') 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); -} -- cgit v1.2.3