mirror of
https://github.com/Noratrieb/rlo-issue-112061.git
synced 2026-01-14 16:35:04 +01:00
more
This commit is contained in:
parent
bd061d4afe
commit
ad97b16726
2 changed files with 31 additions and 33 deletions
6
check.sh
6
check.sh
|
|
@ -1,12 +1,12 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
rustc code.rs --crate-name bad -Zmir-enable-passes=-ConstProp
|
||||
rustc code.rs --crate-name good -Zmir-enable-passes=+ConstProp
|
||||
rustc code.rs --crate-name bad -Zmir-enable-passes=-ConstProp -Copt-level=3
|
||||
rustc code.rs --crate-name good -Zmir-enable-passes=+ConstProp -Copt-level=3
|
||||
|
||||
bad=$(./bad)
|
||||
good=$(./good)
|
||||
|
||||
if [ good != bad ]; then
|
||||
if [ "$good" != "$bad" ]; then
|
||||
echo "MISCOMPILATION"
|
||||
else
|
||||
echo "no repro"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue