test_gen: allow non-llvm tests to expect errors

This commit is contained in:
Brian Carroll 2022-02-09 13:45:25 +00:00
parent 4b585cc6c6
commit abfa4b1522
2 changed files with 23 additions and 13 deletions

View file

@ -3,8 +3,6 @@ use crate::helpers::llvm::assert_evals_to;
#[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_expect_failed;
#[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_llvm_evals_to;
#[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_non_opt_evals_to;
#[cfg(feature = "gen-dev")]
@ -2473,7 +2471,7 @@ fn function_malformed_pattern() {
#[cfg(any(feature = "gen-llvm"))]
#[should_panic(expected = "Hit an erroneous type when creating a layout for")]
fn call_invalid_layout() {
assert_llvm_evals_to!(
assert_evals_to!(
indoc!(
r#"
f : I64 -> I64