aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/127 generated assembly/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/127 generated assembly/main.c')
-rw-r--r--meson/test cases/common/127 generated assembly/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/meson/test cases/common/127 generated assembly/main.c b/meson/test cases/common/127 generated assembly/main.c
new file mode 100644
index 000000000..fb38f9df4
--- /dev/null
+++ b/meson/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;
+}