diff --git a/ices/67019.sh b/ices/67019.sh new file mode 100755 index 00000000..9e1df75e --- /dev/null +++ b/ices/67019.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +rustc +nightly --edition 2018 -Z mir-opt-level=2 - << EOF +fn test(this: ((u8, u8),)) { + assert!((this.0).1 == 0); +} +fn main() { + test(((1, 2),)); +} + +EOF diff --git a/src/lib.rs b/src/lib.rs index 865ba4db..d36fb298 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,7 @@ pub use rayon; static RUSTC: &str = "rustc"; static ICES_PATH: &str = "ices"; +static SHELL: &str = "bash"; #[derive(Debug, PartialEq, Eq, PartialOrd, Ord)] enum TestMode { @@ -40,7 +41,8 @@ impl ICE { .arg(std::fs::canonicalize(&self.path)?) .current_dir(workdir.path()) .output()?, - TestMode::ShellScript => Command::new(std::fs::canonicalize(&self.path)?) + TestMode::ShellScript => Command::new(SHELL) + .arg(std::fs::canonicalize(&self.path)?) .current_dir(workdir.path()) .output()?, };