Otherwise we can't know why it failed and that makes it harder to debug.pull/1184/head
parent
5240688f5c
commit
4967b2a5ea
2 changed files with 13 additions and 4 deletions
@ -1,9 +1,14 @@ |
|||||||
|
#include <stdio.h> |
||||||
|
|
||||||
unsigned square_unsigned (unsigned a); |
unsigned square_unsigned (unsigned a); |
||||||
|
|
||||||
int |
int |
||||||
main (int argc, char * argv[]) |
main (int argc, char * argv[]) |
||||||
{ |
{ |
||||||
if (square_unsigned (2) != 4) |
unsigned int ret = square_unsigned (2); |
||||||
return -1; |
if (ret != 4) { |
||||||
|
printf("Got %u instead of 4\n", ret); |
||||||
|
return 1; |
||||||
|
} |
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue