source: CIVL/examples/languageFeatures/atomicWaitBad.cvl@ 5a81196

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 5a81196 was 5a81196, checked in by Manchun Zheng <zmanchun@…>, 13 years ago

Add a bad test that has a wait statement in the atomic block.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@346 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 145 bytes
Line 
1#include <civlc.h>
2void foo(){
3 void koo(){
4 int o = 0;
5 o++;
6 }
7
8 $proc p = $spawn koo();
9 $wait p;
10}
11
12void main(){
13
14 $atomic{
15 foo();
16 }
17}
Note: See TracBrowser for help on using the repository browser.