summaryrefslogtreecommitdiff
path: root/test/stdio/64bit.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-24 20:22:12 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-24 20:22:12 +0200
commit7988979a722b4cdf287b2093956a76a3f19b9897 (patch)
treed35e251d0472ceca55a2eef61cff261c8ee68fab /test/stdio/64bit.c
add uClibc-ng test directory
Diffstat (limited to 'test/stdio/64bit.c')
-rw-r--r--test/stdio/64bit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/stdio/64bit.c b/test/stdio/64bit.c
new file mode 100644
index 0000000..9b94dd8
--- /dev/null
+++ b/test/stdio/64bit.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+int main(void)
+{
+ unsigned long long val = -1;
+ void *ptr = (void *)-1;
+ printf("%p\n", ptr);
+
+ sscanf("123456789", "%Lx", &val);
+ printf("val = %Lx\n", val);
+ return 0;
+}