Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/test-be.c | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 validation/test-be.c diff --git a/validation/test-be.c b/validation/test-be.c deleted file mode 100644 index deda3cc14..000000000 --- a/validation/test-be.c +++ /dev/null @@ -1,46 +0,0 @@ -int printf(char *c, ...); -void exit(int c); - -#undef PRINT_OUTPUTS - -static void test_func_args(int x, int y) -{ - if (x == y) - exit(1); -} - -static int binop_s32(int x, int y) -{ - int a; - - a = a + x; - a = a / y; - a = a * x; - a = a - y; - - return a; -} - -static void test_binops(void) -{ - int tmp_s32 = binop_s32(987123, 234); - -#ifdef PRINT_OUTPUTS - printf("binop_s32(987123, 234) == %d\n", tmp_s32); -#else - if (tmp_s32 != -1470599007) - exit(2); -#endif -} - -int main (int argc, char *argv[]) -{ - test_func_args(1, 2); - test_binops(); - - return 0; -} - -/* - * check-name: binary operations - */ -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html