Improve symbols test

Remove seed argument and check for disallowed undefined symbols
This commit is contained in:
2024-01-30 11:46:03 -08:00
parent 3735a43553
commit eca1b9993a
7 changed files with 17 additions and 9 deletions

View File

@@ -820,7 +820,7 @@ void ConflictSet::setOldestVersion(int64_t oldestVersion) {
return impl->setOldestVersion(oldestVersion);
}
ConflictSet::ConflictSet(int64_t oldestVersion, [[maybe_unused]] uint64_t seed)
ConflictSet::ConflictSet(int64_t oldestVersion)
: impl(new (safe_malloc(sizeof(Impl))) Impl{oldestVersion}) {}
ConflictSet::~ConflictSet() {
@@ -859,7 +859,7 @@ ConflictSet_setOldestVersion(void *cs, int64_t oldestVersion) {
((ConflictSet::Impl *)cs)->setOldestVersion(oldestVersion);
}
__attribute__((__visibility__("default"))) void *
ConflictSet_create(int64_t oldestVersion, uint64_t) {
ConflictSet_create(int64_t oldestVersion) {
return new (safe_malloc(sizeof(ConflictSet::Impl)))
ConflictSet::Impl{oldestVersion};
}
@@ -870,6 +870,8 @@ __attribute__((__visibility__("default"))) void ConflictSet_destroy(void *cs) {
}
}
namespace {
void printLogical(std::string &result, Node *node) {
Arena arena;
for (Node *iter = node; iter != nullptr;) {
@@ -982,6 +984,8 @@ bool checkCorrectness(Node *node, ReferenceImpl &refImpl) {
return success;
}
} // namespace
namespace std {
void __throw_length_error(const char *) { __builtin_unreachable(); }
} // namespace std