summaryrefslogtreecommitdiff
path: root/debug/tst-chk1.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-07-21 09:33:53 +0000
committerJakub Jelinek <jakub@redhat.com>2005-07-21 09:33:53 +0000
commitc6dd3473c618260352d280a829d88695d9e2ae23 (patch)
tree73954204ef93da3335a9d3344c0367dfe6004bb4 /debug/tst-chk1.c
parent736e2ab430e006ba09a2fe34d7887d3812ac808f (diff)
* wcsmbs/bits/wchar2.h (swprintf): Remove format argument.
* debug/tst-chk1.c (do_test): Add test for swprintf with format being the last argument.
Diffstat (limited to 'debug/tst-chk1.c')
-rw-r--r--debug/tst-chk1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug/tst-chk1.c b/debug/tst-chk1.c
index f444a14c2a..c22c2e8fc2 100644
--- a/debug/tst-chk1.c
+++ b/debug/tst-chk1.c
@@ -406,6 +406,10 @@ do_test (void)
|| wmemcmp (wbuf, L"aabcEDX98", 10))
FAIL ();
+ if (swprintf (wbuf + 7, 3, L"64") != 2
+ || wmemcmp (wbuf, L"aabcEDX64", 10))
+ FAIL ();
+
/* These ops need runtime checking, but shouldn't __chk_fail. */
wmemcpy (wbuf, L"abcdefghij", l0 + 10);
wmemmove (wbuf + 1, wbuf, l0 + 9);