source: CIVL/examples/omp/parallelBad.c@ afc300c

1.23 2.0 main test-branch
Last change on this file since afc300c was b9a6041, checked in by Manchun Zheng <zmanchun@…>, 11 years ago

added an openmp example that reveals a bug of the simplifier.

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

  • Property mode set to 100644
File size: 140 bytes
Line 
1#include <civlc.cvh>
2
3int main() {
4 int counter = 0;
5
6 #pragma omp parallel
7 if (counter == 0)
8 counter++;
9 $assert(counter == 1);
10}
Note: See TracBrowser for help on using the repository browser.