diff options
| author | Brian Campbell | 2017-10-18 15:07:24 +0100 |
|---|---|---|
| committer | Brian Campbell | 2017-10-18 15:07:24 +0100 |
| commit | bd9cabab3e20b92a705f37f0a1974033a869bde0 (patch) | |
| tree | c73e3e47b4ce0578c9b79ca3ebd3ad74db93ffa4 /test/typecheck | |
| parent | 79043c19238559a7daea7b495e604ef00a6b2a8c (diff) | |
| parent | 4043f496ff8dae7fa2bc2b4da4e02d2d9942e66d (diff) | |
Merge branch 'experiments' of Peter_Sewell/sail into mono-experiments
(and fix up monomorphisation)
Diffstat (limited to 'test/typecheck')
| -rw-r--r-- | test/typecheck/pass/ex_cast.sail | 12 | ||||
| -rw-r--r-- | test/typecheck/pass/nzcv.sail | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/typecheck/pass/ex_cast.sail b/test/typecheck/pass/ex_cast.sail new file mode 100644 index 00000000..5ea22d14 --- /dev/null +++ b/test/typecheck/pass/ex_cast.sail @@ -0,0 +1,12 @@ + +default Order dec + +val cast int -> exist 'n. [:'n:] effect pure ex_int + +val [:'n:] -> bit['n] effect pure zeros + +val int -> unit effect pure test + +function test n = { + x := zeros(n) +} diff --git a/test/typecheck/pass/nzcv.sail b/test/typecheck/pass/nzcv.sail index a477cd97..3e23e529 100644 --- a/test/typecheck/pass/nzcv.sail +++ b/test/typecheck/pass/nzcv.sail @@ -4,6 +4,10 @@ val bit[4] -> unit effect pure test function test nzcv = { + N := 0b0; + Z := 0b0; + C := 0b0; + V := 0b0; (N,Z,C,V) := nzcv; () } |
