Browse Source

make sure reading 64bit types works

Mike Frysinger 18 years ago
parent
commit
5736809f5b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      test/stdio/64bit.c

+ 4 - 0
test/stdio/64bit.c

@@ -2,7 +2,11 @@
 
 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;
 }