Skip to content

Commit

Permalink
Added check to test as suggested by @edwardalee
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Sep 17, 2022
1 parent 0517021 commit 15e1df3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/C/src/MultipleOutputs.lf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ reactor C {

main reactor {
c = new C()
state triggered: bool(true)

reaction(c.z) {= lf_print("c.z = %d", c.z->value); =}
reaction(c.z) {=
lf_print("c.z = %d", c.z->value);
self->triggered = true;
=}

reaction(shutdown) {=
if (!self->triggered) {
lf_print_error_and_exit("Reaction never triggered.\n");
}
=}
}

0 comments on commit 15e1df3

Please # to comment.