diff options
Diffstat (limited to 'test cases/common/127 generated assembly/main.c')
-rw-r--r-- | test cases/common/127 generated assembly/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test cases/common/127 generated assembly/main.c b/test cases/common/127 generated assembly/main.c new file mode 100644 index 0000000..fb38f9d --- /dev/null +++ b/test cases/common/127 generated assembly/main.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +#if defined(_WIN32) || defined(__CYGWIN__) + __declspec(dllimport) +#endif +unsigned square_unsigned (unsigned a); + +int main(void) +{ + unsigned int ret = square_unsigned (2); + if (ret != 4) { + printf("Got %u instead of 4\n", ret); + return 1; + } + return 0; +} |