Skip to content

Commit fecf0e5

Browse files
Update testvalueflow.cpp
1 parent 18c95bf commit fecf0e5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/testvalueflow.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9066,8 +9066,8 @@ class TestValueFlow : public TestFixture {
90669066
ASSERT_EQUALS(false, testValueOfX(code, 5U, 0));
90679067
}
90689068

9069-
void valueFlowBailoutIncompleteVar() { // #12526
9070-
bailout(
9069+
void valueFlowBailoutIncompleteVar() {
9070+
bailout( // #12526
90719071
"int f1() {\n"
90729072
" return VALUE_1;\n"
90739073
"}\n"
@@ -9080,6 +9080,13 @@ class TestValueFlow : public TestFixture {
90809080
"[test.cpp:2]: (debug) valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VALUE_1\n"
90819081
"[test.cpp:6]: (debug) valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VALUE_2\n",
90829082
errout_str());
9083+
9084+
bailout(
9085+
"std::string_view f() {\n"
9086+
" return \"abc\"sv;\n"
9087+
"}\n"
9088+
);
9089+
ASSERT_EQUALS_WITHOUT_LINENUMBERS("", errout_str());
90839090
}
90849091

90859092
void valueFlowBailoutNoreturn() { // #13718

0 commit comments

Comments
 (0)