diff --git a/test/val/bug1838.c b/test/val/bug1838.c index ba3c1164f..ea2d39a81 100644 --- a/test/val/bug1838.c +++ b/test/val/bug1838.c @@ -12,7 +12,7 @@ int main(void) fn_t bar; foo(bar); - return 0; + return failures; } void foo(int func(int)) diff --git a/test/val/bug1847-struct-field-access.c b/test/val/bug1847-struct-field-access.c index 50ae32332..71575636f 100644 --- a/test/val/bug1847-struct-field-access.c +++ b/test/val/bug1847-struct-field-access.c @@ -42,5 +42,5 @@ int main(void) { printf("Failures: %u\n", failures); } - return 0; + return failures; } diff --git a/test/val/mult1.c b/test/val/mult1.c index 6d491a427..95141d76d 100644 --- a/test/val/mult1.c +++ b/test/val/mult1.c @@ -26,15 +26,17 @@ void done() void m1(void) { - c1 = c1*5; /* char = char * lit */ + c1 = c1*5; /* char = char * lit */ + c2 = c1*c3; /* char = char * char */ - c2 = c1 *c3; /* char = char * char */ - - uc1= uc1*5; /* uchar = uchar * lit * - uc2=uc1*uc3; /* uchar = uchar * uchar */ + uc1 = uc1*3; /* uchar = uchar * lit */ + uc2 = uc1*uc3; /* uchar = uchar * uchar */ if(c2 != 25) failures++; + + if(uc2 != 36) + failures++; } void m2(unsigned char uc) @@ -96,6 +98,9 @@ int main(void) c1 = 1; c3 = 5; + uc1 = 2; + uc3 = 6; + m1(); uc1 = 0x10; @@ -107,7 +112,7 @@ int main(void) ui3 = ui1*ui2; /* uint = uint * unit */ - /*m3(TESTLIT);*/ + m3(TESTLIT); success = failures; done();