From f16d002db9edc2650b1d68482ae458e8bda6d8c3 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Fri, 14 Jul 2023 10:38:54 -0700 Subject: [PATCH] GCC fix --- tests/Differ.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Differ.test.cpp b/tests/Differ.test.cpp index 520c5302..1e9dcac3 100644 --- a/tests/Differ.test.cpp +++ b/tests/Differ.test.cpp @@ -341,7 +341,7 @@ TEST_CASE_FIXTURE(Fixture, "equal_function") INFO(diffRes.diffError->toString()); CHECK(!diffRes.diffError.has_value()); } - catch (InternalCompilerError e) + catch (const InternalCompilerError& e) { INFO(("InternalCompilerError: " + e.message)); CHECK(false); @@ -377,7 +377,7 @@ TEST_CASE_FIXTURE(Fixture, "equal_function_inferred_ret_length") INFO(diffRes.diffError->toString()); CHECK(!diffRes.diffError.has_value()); } - catch (InternalCompilerError e) + catch (const InternalCompilerError& e) { INFO(("InternalCompilerError: " + e.message)); CHECK(false);