diff options
| author | jvoisin | 2023-09-17 19:04:27 +0200 |
|---|---|---|
| committer | jvoisin | 2023-09-17 19:04:27 +0200 |
| commit | d2ab22e80e192f6013f7fa83a6b28864bd5865e4 (patch) | |
| tree | 194d90632fc77d3bde2fbc7603fb247157b42594 /tests/test_wcsncat_static_write.c | |
| parent | 62c26587315cddaeee6708d71f1bd892e24817ee (diff) | |
Make use of the buffers in the wide-chars tests
Just in case the compiler tries to optimize some things away.
Diffstat (limited to 'tests/test_wcsncat_static_write.c')
| -rw-r--r-- | tests/test_wcsncat_static_write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_wcsncat_static_write.c b/tests/test_wcsncat_static_write.c index da66cbf..ae4746e 100644 --- a/tests/test_wcsncat_static_write.c +++ b/tests/test_wcsncat_static_write.c | |||
| @@ -5,10 +5,12 @@ | |||
| 5 | int main(int argc, char** argv) { | 5 | int main(int argc, char** argv) { |
| 6 | wchar_t buffer[8] = {0}; | 6 | wchar_t buffer[8] = {0}; |
| 7 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 2); | 7 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 2); |
| 8 | fputws(buffer, stdout); | ||
| 8 | 9 | ||
| 9 | CHK_FAIL_START | 10 | CHK_FAIL_START |
| 10 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 1337); | 11 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 1337); |
| 11 | CHK_FAIL_END | 12 | CHK_FAIL_END |
| 12 | 13 | ||
| 14 | fputws(buffer, stdout); | ||
| 13 | return ret; | 15 | return ret; |
| 14 | } | 16 | } |
