diff options
-rw-r--r-- | test cases/common/126 llvm ir and assembly/main.c | 9 | ||||
-rw-r--r-- | test cases/common/126 llvm ir and assembly/main.cpp | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/test cases/common/126 llvm ir and assembly/main.c b/test cases/common/126 llvm ir and assembly/main.c index edfb29e..97fe723 100644 --- a/test cases/common/126 llvm ir and assembly/main.c +++ b/test cases/common/126 llvm ir and assembly/main.c @@ -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; } diff --git a/test cases/common/126 llvm ir and assembly/main.cpp b/test cases/common/126 llvm ir and assembly/main.cpp index 4f576e7..f2c7de3 100644 --- a/test cases/common/126 llvm ir and assembly/main.cpp +++ b/test cases/common/126 llvm ir and assembly/main.cpp @@ -1,3 +1,4 @@ +#include <stdio.h> extern "C" { unsigned square_unsigned (unsigned a); @@ -6,7 +7,10 @@ extern "C" { 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; } |