summaryrefslogtreecommitdiff
path: root/test/gtest/cfg.cpp
diff options
context:
space:
mode:
authorBruce He <44327446+zm2he@users.noreply.github.com>2023-07-28 15:40:28 +0000
committerGitHub <noreply@github.com>2023-07-28 11:40:28 -0400
commitb1e23ca6a1b930421279141ed06e94300eddcf17 (patch)
treeccf92e6da2c0df5948418fd8d9b6fd13700e0283 /test/gtest/cfg.cpp
parent8375f80fa789afaac58b0c86ba5c9396c2003635 (diff)
downloadbinaryen-b1e23ca6a1b930421279141ed06e94300eddcf17.tar.gz
binaryen-b1e23ca6a1b930421279141ed06e94300eddcf17.tar.bz2
binaryen-b1e23ca6a1b930421279141ed06e94300eddcf17.zip
Convert lattice compare function to non-static (#5848)
Changes the static asserts checking a lattice type to require a non-static compare function instead of a static one. Also changes the compare functions of existing lattices to be non-static.
Diffstat (limited to 'test/gtest/cfg.cpp')
-rw-r--r--test/gtest/cfg.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/gtest/cfg.cpp b/test/gtest/cfg.cpp
index 7bf18ebdb..07b44e261 100644
--- a/test/gtest/cfg.cpp
+++ b/test/gtest/cfg.cpp
@@ -320,10 +320,9 @@ TEST_F(CFGTest, FinitePowersetLatticeFunctioning) {
auto element2 = element1;
lattice.remove(&element2, "c");
- EXPECT_EQ(FinitePowersetLattice<std::string>::compare(element1, element2),
- LatticeComparison::GREATER);
+ EXPECT_EQ(lattice.compare(element1, element2), LatticeComparison::GREATER);
lattice.add(&element2, "f");
- EXPECT_EQ(FinitePowersetLattice<std::string>::compare(element1, element2),
+ EXPECT_EQ(lattice.compare(element1, element2),
LatticeComparison::NO_RELATION);
std::stringstream ss;