Skip to content

Commit 7f836d9

Browse files
Update testvalueflow.cpp
1 parent 089f473 commit 7f836d9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/testvalueflow.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8355,6 +8355,17 @@ class TestValueFlow : public TestFixture {
83558355
" auto b = a;\n"
83568356
"}\n";
83578357
(void)valueOfTok(code, "b");
8358+
8359+
code = "namespace O {}\n" // #14952
8360+
"namespace N {\n"
8361+
" using namespace O;\n"
8362+
" enum class E { E0 };\n"
8363+
" auto E0 = E::E0;\n"
8364+
" struct S {\n"
8365+
" E f() const { return E0; }\n"
8366+
" };\n"
8367+
"}\n";
8368+
(void)valueOfTok(code, "E0");
83588369
}
83598370

83608371
void valueFlowHang() {

0 commit comments

Comments
 (0)