Skip to content

Commit 0dd3253

Browse files
Update testvalueflow.cpp
1 parent a4a0153 commit 0dd3253

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/testvalueflow.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7457,6 +7457,13 @@ class TestValueFlow : public TestFixture {
74577457
"}";
74587458
ASSERT_EQUALS(true, testValueOfX(code, 4U, 100, ValueFlow::Value::ValueType::BUFFER_SIZE));
74597459

7460+
code = "struct S {};\n"
7461+
"void* f() {\n"
7462+
" void* x = new S();\n"
7463+
" return x;\n"
7464+
"}";
7465+
TODO_ASSERT_EQUALS(true, false, testValueOfX(code, 4U, 1, ValueFlow::Value::ValueType::BUFFER_SIZE));
7466+
74607467
settings = settingsOld;
74617468
}
74627469

0 commit comments

Comments
 (0)