This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
21 lines
518 B
Text
21 lines
518 B
Text
/-!
|
|
# Improve compiler IR check message for users when constants are not compiled
|
|
-/
|
|
|
|
/-
|
|
This is a simplified version of the example in #1785.
|
|
Note that the error changes if the typeclass argument is removed.
|
|
-/
|
|
|
|
noncomputable
|
|
def char (R : Type) [∀ n, OfNat R n] : Nat := 0
|
|
|
|
/--
|
|
error: failed to compile definition, consider marking it as 'noncomputable'
|
|
because it depends on 'char', which is 'noncomputable'
|
|
-/
|
|
#guard_msgs in
|
|
def bug (R : Type) [∀ n, OfNat R n] : R :=
|
|
match char R with
|
|
| 0 => 1
|
|
| _ => 0
|