aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/general/branch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa/general/branch.c')
-rw-r--r--test/mppa/general/branch.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/test/mppa/general/branch.c b/test/mppa/general/branch.c
index c9bb3865..72e7e20e 100644
--- a/test/mppa/general/branch.c
+++ b/test/mppa/general/branch.c
@@ -1,13 +1,10 @@
-int main(void){
- int a=1;
- int b;
+#include "framework.h"
- if(a){
- b = a+4;
- } else {
- b = a+2;
- }
-
- return b;
+BEGIN_TEST(int)
+{
+ if ((a & 0x1) == 1)
+ c = 0;
+ else
+ c = 1;
}
-/* RETURN VALUE: 5 */
+END_TEST()