aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/funct3.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/funct3.c')
-rw-r--r--test/regression/funct3.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/regression/funct3.c b/test/regression/funct3.c
new file mode 100644
index 00000000..8a1acded
--- /dev/null
+++ b/test/regression/funct3.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+unsigned char foo (unsigned short n)
+{
+ printf("%d\n", n);
+ return -30;
+}
+
+int main (void)
+{
+ int x = foo(-123456);
+ printf("%d\n", x);
+ return 0;
+}