Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 761a1db

Browse files
authored
Merge pull request #227 from Julian-Wollersberger/patch-1
Add ICE #67019
2 parents ac8be05 + 8993b78 commit 761a1db

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

ices/67019.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
rustc +nightly --edition 2018 -Z mir-opt-level=2 - << EOF
4+
fn test(this: ((u8, u8),)) {
5+
assert!((this.0).1 == 0);
6+
}
7+
fn main() {
8+
test(((1, 2),));
9+
}
10+
11+
EOF

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub use rayon;
88

99
static RUSTC: &str = "rustc";
1010
static ICES_PATH: &str = "ices";
11+
static SHELL: &str = "bash";
1112

1213
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
1314
enum TestMode {
@@ -40,7 +41,8 @@ impl ICE {
4041
.arg(std::fs::canonicalize(&self.path)?)
4142
.current_dir(workdir.path())
4243
.output()?,
43-
TestMode::ShellScript => Command::new(std::fs::canonicalize(&self.path)?)
44+
TestMode::ShellScript => Command::new(SHELL)
45+
.arg(std::fs::canonicalize(&self.path)?)
4446
.current_dir(workdir.path())
4547
.output()?,
4648
};

0 commit comments

Comments
 (0)