aboutsummaryrefslogtreecommitdiff
path: root/tests/return64bit/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/return64bit/test.c')
-rw-r--r--tests/return64bit/test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/return64bit/test.c b/tests/return64bit/test.c
new file mode 100644
index 00000000..e75ee5c1
--- /dev/null
+++ b/tests/return64bit/test.c
@@ -0,0 +1,6 @@
+
+// This is just a trivial test function, the key bit of interest is that it returns a 64 bit long.
+long long test() {
+ long long x = ((long long)1234 << 32) + 5678;
+ return x;
+}