diff options
| author | jvoisin | 2026-05-04 17:02:12 +0200 |
|---|---|---|
| committer | jvoisin | 2026-05-10 01:10:32 +0200 |
| commit | e7c86620bb0c0f8b868d3e4c8dcdebeeffb99631 (patch) | |
| tree | dee45e3d0ba90fe49e17df891b4752524ea868ac /tests/test_wcsncat_dynamic_write.c | |
| parent | e8e2d1214a49f3c268fb5f3a92e8144b23e35243 (diff) | |
Diffstat (limited to 'tests/test_wcsncat_dynamic_write.c')
| -rw-r--r-- | tests/test_wcsncat_dynamic_write.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_wcsncat_dynamic_write.c b/tests/test_wcsncat_dynamic_write.c new file mode 100644 index 0000000..9f87172 --- /dev/null +++ b/tests/test_wcsncat_dynamic_write.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <wchar.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | wchar_t buffer[8] = {0}; | ||
| 7 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 2); | ||
| 8 | printf("%ls\n", buffer); | ||
| 9 | |||
| 10 | CHK_FAIL_START | ||
| 11 | wcsncat(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", argc + 1336); | ||
| 12 | CHK_FAIL_END | ||
| 13 | |||
| 14 | printf("%ls\n", buffer); | ||
| 15 | return ret; | ||
| 16 | } | ||
