coverage/oceani.mdc.gcov
@rm -f .tmp*
- @for T in $(oceani_tests); do \
+ @[ -n "$$SKIP_VALGRIND" ] || for T in $(oceani_tests); do \
echo -n "Valgrind $$T.. "; \
i="$$IFS"; IFS=,; set $$T; IFS="$$i"; t=$$1; shift; \
if ! valgrind --error-exitcode=1 --log-file=.tmp.valg ./oceani --section "test: $$t" oceani-tests.mdc $${1+"$$@"} \
###### test: sayhello
- program As Bs astr bbools:
- A := $As; B := $Bs
- bbool := bbools == "True"
+ program ac av:
+ A := $av[1]; B := $av[2]
+ astr := av[3]
+ bbool := av[ac-1] == "True"
print "Hello World, what lovely oceans you have!"
/* When a variable is defined in both branches of an 'if',
* and used afterwards, the variables are merged.
struct foo
size:[three]number
name:string
- active:Boolean
+ active:Boolean = True
struct baz { a:number; b:Boolean; }
info[i].name = nm
info[i].size[0] = i*i
- info[i].active = nm == "jane"
+ if nm != "jane":
+ info[i].active = False
for i:=0; then i=i+1; while i < 4:
print info[i].name, info[i].active, info[i].size[0]