Skip to content

Commit

Permalink
test: make 1697 Linux-Debug safe
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata committed Jul 25, 2024
1 parent 93fa9c8 commit 2fe82fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/lean/run/1697.lean
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ info: 3
#guard_msgs in
#eval! #[1,2,3][2]'sorry


/-
With this test I wanted to show that `#eval!` can be used to do unsafe operations. Under
normal circumstances this actually works with the output below, but the `Linux Debug` CI build
catches it and complains. Maybe too bold to have this in the test suite.
/--
warning: declaration uses 'sorry'
---
info: 3
-/
#guard_msgs in
#eval! (#[1,2,3].pop)[2]'sorry
-/

0 comments on commit 2fe82fe

Please sign in to comment.