Skip to content

Commit 08b642f

Browse files
Update testio.cpp
1 parent 8226b31 commit 08b642f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/testio.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4800,6 +4800,13 @@ class TestIO : public TestFixture {
48004800
" wscanf_s(L\"%4[^-]\", msStr1, _countof(msStr1));\n"
48014801
"}\n", dinit(CheckOptions, $.platform = Platform::Type::Win32W));
48024802
ASSERT_EQUALS("", errout_str());
4803+
4804+
check("void f(const char* c) {\n"
4805+
" const size_t N = 5;\n"
4806+
" char buf[N];\n"
4807+
" sscanf_s(c, \"%4[^.]\", buf, N);\n"
4808+
"}\n", dinit(CheckOptions, $.platform = Platform::Type::Win64));
4809+
ASSERT_EQUALS("", errout_str());
48034810
}
48044811

48054812
void testQStringFormatArguments() {

0 commit comments

Comments
 (0)