From d2ab22e80e192f6013f7fa83a6b28864bd5865e4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 17 Sep 2023 19:04:27 +0200 Subject: Make use of the buffers in the wide-chars tests Just in case the compiler tries to optimize some things away. --- tests/test_wcsncpy_static_write.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_wcsncpy_static_write.c') diff --git a/tests/test_wcsncpy_static_write.c b/tests/test_wcsncpy_static_write.c index 163d563..104055a 100644 --- a/tests/test_wcsncpy_static_write.c +++ b/tests/test_wcsncpy_static_write.c @@ -5,10 +5,12 @@ int main(int argc, char** argv) { wchar_t buffer[8] = {0}; wcsncpy(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 1); + fputws(buffer, stdout); CHK_FAIL_START wcsncpy(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 1337); CHK_FAIL_END + fputws(buffer, stdout); return ret; } -- cgit v1.3