File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1251,6 +1251,7 @@ if(LLVM_LIBC_FULL_BUILD)
12511251 libc.src.wchar.mbrtowc
12521252 libc.src.wchar.mbtowc
12531253 libc.src.wchar.wcrtomb
1254+ libc.src.wchar.wcsrtombs
12541255 )
12551256endif()
12561257
Original file line number Diff line number Diff line change @@ -175,6 +175,15 @@ functions:
175175 - type : char *__restrict
176176 - type : wchar_t
177177 - type : mbstate_t *__restrict
178+ - name : wcsrtombs
179+ standards :
180+ - stdc
181+ return_type : size_t
182+ arguments :
183+ - type : char *__restrict
184+ - type : wchar_t **__restrict
185+ - type : size_t
186+ - type : mbstate_t *__restrict
178187 - name : wcscpy
179188 standards :
180189 - stdc
Original file line number Diff line number Diff line change @@ -74,6 +74,20 @@ add_libc_test(
7474 libc.src.__support.libc_errno
7575)
7676
77+ add_libc_test(
78+ wcsrtombs_test
79+ SUITE
80+ libc_wchar_unittests
81+ SRCS
82+ wcsrtombs_test.cpp
83+ DEPENDS
84+ libc.src.wchar.wcrtomb
85+ libc.src.string .memset
86+ libc.hdr.types.wchar_t
87+ libc.hdr.types.mbstate_t
88+ libc.src.__support.libc_errno
89+ )
90+
7791add_libc_test(
7892 wmemset_test
7993 SUITE
You can’t perform that action at this time.
0 commit comments