aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-09-11 05:22:53 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-11-08 10:51:02 +0100
commit3004ed26358f1b501883cabb6689abd9fceeb788 (patch)
treef08f35ae71482299254c9f0bd61cefae13ee49f8 /validation
parentf0888acf8539e15b68043b8e1f4b9d2605502ec0 (diff)
downloadsparse-dev-3004ed26358f1b501883cabb6689abd9fceeb788.tar.gz
testsuite: remove useless test-be.c
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
-rw-r--r--validation/test-be.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/validation/test-be.c b/validation/test-be.c
deleted file mode 100644
index deda3cc1..00000000
--- 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
- */