SCM Repository
Annotation of /branches/vis15/src/tests/new-tests/coerce-test.diderot
Parent Directory
|
Revision Log
Revision 3588 - (view) (download)
1 : | jhr | 3588 | // test various coercion situations |
2 : | // | ||
3 : | |||
4 : | real[4] xs = {1, 1.5, 2, 2.4}; | ||
5 : | real[] ys = {1.2, 2, 4}; | ||
6 : | |||
7 : | strand S (real x') { | ||
8 : | output real x = x'; | ||
9 : | int i = 1; | ||
10 : | |||
11 : | update { | ||
12 : | x = (x if true else i); | ||
13 : | } | ||
14 : | } | ||
15 : | |||
16 : | collection { S(x+y) | x in xs, y in ys } |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |