Skip to content

Commit ad1dab7

Browse files
committed
fix ambiguity warnings in GetAllCppNames unittest
1 parent 3f0bfc4 commit ad1dab7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unittests/CppInterOp/ScopeReflectionTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,10 @@ TEST(ScopeReflectionTest, GetAllCppNames) {
789789
}
790790
)";
791791

792-
GetAllTopLevelDecls(code, Decls);
792+
std::vector<const char*> interpreter_args = {"-Wno-inaccessible-base"};
793+
794+
GetAllTopLevelDecls(code, Decls, /*filter_implicitGenerated=*/false,
795+
interpreter_args);
793796

794797
auto test_get_all_cpp_names =
795798
[](Decl* D, const std::vector<std::string>& truth_names) {

0 commit comments

Comments
 (0)