diff --git a/test/llvm_multi_state.cpp b/test/llvm_multi_state.cpp index 82613b682..5d2ea026c 100644 --- a/test/llvm_multi_state.cpp +++ b/test/llvm_multi_state.cpp @@ -145,6 +145,9 @@ TEST_CASE("copy semantics") auto *cf2_ptr = reinterpret_cast( ms_copy.jit_lookup("f2")); + REQUIRE_THROWS_MATCHES(ms_copy.jit_lookup("f3"), std::invalid_argument, + Message("Could not find the symbol 'f3' in an llvm_multi_state")); + const double ins[] = {2., 3.}; double outs[2] = {};