diff options
| author | Kathy Gray | 2014-03-23 22:53:54 +0000 |
|---|---|---|
| committer | Kathy Gray | 2014-03-23 22:53:54 +0000 |
| commit | cc67e37402fda77d0c523df82caa5f80f17105f3 (patch) | |
| tree | 9341ad10cd2943554c98af6ce48ef8550eac5ce5 /src/test | |
| parent | 1b38fe99c95fd44e7a74ff1b9ccd229c4a2c0fee (diff) | |
adding if test
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/test2.sail | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test2.sail b/src/test/test2.sail index 1418f990..b4a2dd32 100644 --- a/src/test/test2.sail +++ b/src/test/test2.sail @@ -1,5 +1,15 @@ function nat id ( n ) = n +function unit f() = { + (if( true ) then + a := 3 + else + a := 4 + ); + b := a; +} + function nat effect pure main _ = { + f(); id(42); } |
