mirror of
https://github.com/Noratrieb/rlo-issue-112061.git
synced 2026-01-14 08:25:03 +01:00
more
This commit is contained in:
commit
158ebfb3b4
5 changed files with 117 additions and 0 deletions
13
check.sh
Executable file
13
check.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
rustc code.rs --crate-name bad -Zmir-enable-passes=-ConstProp
|
||||
rustc code.rs --crate-name good -Zmir-enable-passes=+ConstProp
|
||||
|
||||
bad=$(./bad)
|
||||
good=$(./good)
|
||||
|
||||
if [ good != bad ]; then
|
||||
echo "MISCOMPILATION"
|
||||
else
|
||||
echo "no repro"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue