aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/general/div2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa/general/div2.c')
-rw-r--r--test/mppa/general/div2.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/test/mppa/general/div2.c b/test/mppa/general/div2.c
index ec73b32d..01a4b575 100644
--- a/test/mppa/general/div2.c
+++ b/test/mppa/general/div2.c
@@ -1,22 +1,7 @@
-#define SIZE 10
+#include "framework.h"
-int main(void){
- int a[SIZE], b[SIZE], c[SIZE];
- int i;
-
- for (i = 0 ; i < SIZE ; i++){
- a[i] = i-5;
- b[i] = -i+2;
- c[i] = (a[i] + b[i]) / 2;
- }
- /* a = {-5, -4, .., 5}
- * b = { 2, 1, .., -8}
- */
-
- for (i = 0 ; i < SIZE ; i++)
- if (c[i] != -1)
- return c[i];
-
- return 42;
+BEGIN_TEST(int)
+{
+ c = (a + b) / 2;
}
-/* RETURN VALUE: 42 */
+END_TEST()