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); |
||||
|
||||
int |
||||
main (int argc, char * argv[]) |
||||
{ |
||||
if (square_unsigned (2) != 4) |
||||
return -1; |
||||
unsigned int ret = square_unsigned (2); |
||||
if (ret != 4) { |
||||
printf("Got %u instead of 4\n", ret); |
||||
return 1; |
||||
} |
||||
return 0; |
||||
} |
||||
|
Loading…
Reference in new issue