source: CIVL/examples/concurrency/pointerShare1.cvl@ 32410ee

1.23 2.0 main test-branch
Last change on this file since 32410ee was 4562af7, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

added pointerShare1.cvl based on pointerShare.cvl for which the new POR fails to work correctly.

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

  • Property mode set to 100644
File size: 167 bytes
Line 
1#include<civlc.h>
2int x=0;
3int *p = &x;
4
5void f() {
6 int y=0;
7 {
8 int *q = p;
9 y = y + 1;
10 *q = 15;
11 }
12}
13
14void main() {
15 $spawn f();
16 $assert(*p==0);
17}
Note: See TracBrowser for help on using the repository browser.