From: Andres Noetzli Date: Tue, 29 Jan 2019 22:05:47 +0000 (-0800) Subject: Fix warning due to catching polymorphic exceptions (#2821) X-Git-Tag: cvc5-1.0.0~4267 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=546bf68640875107739011cff1f704f0d3e38f82;p=cvc5.git Fix warning due to catching polymorphic exceptions (#2821) --- diff --git a/test/unit/proof/drat_proof_black.h b/test/unit/proof/drat_proof_black.h index 63c8839b9..946597bea 100644 --- a/test/unit/proof/drat_proof_black.h +++ b/test/unit/proof/drat_proof_black.h @@ -81,19 +81,19 @@ void DratProofBlack::testParseLiteralIsTooBig() { std::string input("a\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x7f\x00", 14); - TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException); + TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException&); } void DratProofBlack::testParseLiteralOverflow() { std::string input("a\x80", 2); - TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException); + TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException&); } void DratProofBlack::testParseClauseOverflow() { std::string input("a\x80\x01", 3); - TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException); + TS_ASSERT_THROWS(DratProof::fromBinary(input), InvalidDratProofException&); } void DratProofBlack::testParseTwo()