aboutsummaryrefslogtreecommitdiff
path: root/contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c')
-rw-r--r--contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c b/contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c
index 54e190760656..d1027fcc7bb1 100644
--- a/contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c
+++ b/contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c
@@ -94,6 +94,12 @@ ATF_TC_BODY(strtol_base, tc)
{ "01234567", 342391, 0, NULL },
{ "0123456789", 123456789, 10, NULL },
{ "0x75bcd15", 123456789, 0, NULL },
+#ifdef __FreeBSD__
+ { "0x", 0, 0, "x" },
+ { "0b111010110111100110100010101", 123456789, 0, NULL },
+ { "0b0123", 1, 0, "23" },
+ { "0b", 0, 0, "b" },
+#endif
};
long long int lli;