diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/printf.c | 20 | ||||
-rw-r--r-- | test/printf.txt | 6 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/printf.c b/test/printf.c new file mode 100644 index 000000000..ca1b1797f --- /dev/null +++ b/test/printf.c @@ -0,0 +1,20 @@ +#include <stdio.h> + +int main() { + int a = 12345; + unsigned b = 123456; + long c = 1234567; + unsigned long d = 12345678; + long long e = 1234567891011; + unsigned long long f = 123456789101112; + + printf( + "int a = %d\n" + "unsigned b = %u\n" + "long c = %ld\n" + "unsigned long d = %lu\n" + "long long e = %lld\n" + "unsigned long long f = %llu\n" + , a, b, c, d, e, f); + return 0; +} diff --git a/test/printf.txt b/test/printf.txt new file mode 100644 index 000000000..3680d516c --- /dev/null +++ b/test/printf.txt @@ -0,0 +1,6 @@ +int a = 12345 +unsigned b = 123456 +long c = 1234567 +unsigned long d = 12345678 +long long e = 1234567891011 +unsigned long long f = 123456789101112 |