Changeset dc5c303 in mainline for uspace/lib/c/test/string.c
- Timestamp:
- 2023-12-28T13:59:23Z (14 months ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/test/string.c
r42c2e65 rdc5c303 799 799 PCUT_TEST(strndup_nonempty_short) 800 800 { 801 #pragma GCC diagnostic push 802 // Intentionally checking it works with _longer_ size than actual 803 #if defined(__GNUC__) && (__GNUC__ >= 11) 804 #pragma GCC diagnostic ignored "-Wstringop-overread" 805 #endif 801 806 char *d = strndup("abc", 5); 807 #pragma GCC diagnostic pop 802 808 PCUT_ASSERT_NOT_NULL(d); 803 809 PCUT_ASSERT_TRUE(d[0] == 'a');
Note:
See TracChangeset
for help on using the changeset viewer.