Fixed t00064 on LLVM 16

This commit is contained in:
Bartek Kryza
2023-05-15 00:57:04 +02:00
parent 02f470e563
commit 57aa174a86
3 changed files with 13 additions and 6 deletions

View File

@@ -64,11 +64,18 @@ TEST_CASE("t00064", "[test-case][class]")
"It,type_list<First...>,type_list<Second...>"));
REQUIRE_THAT(
puml, (IsMethod<Public>("get", "ref_t", "unsigned int i")));
#if LLVM_VERSION_MAJOR < 16
REQUIRE_THAT(puml,
(IsMethod<Public>("getp", "value_type const*", "unsigned int i")));
REQUIRE_THAT(puml,
(IsMethod<Public>("find", "unsigned int", "value_type const& v")));
#else
REQUIRE_THAT(puml,
(IsMethod<Public>("getp", "const value_type *", "unsigned int i")));
REQUIRE_THAT(puml,
(IsMethod<Public>("find", "unsigned int", "const value_type & v")));
#endif
save_puml(
config.output_directory() + "/" + diagram->name + ".puml", puml);
}