source: CIVL/examples/library/civlc/assertBad.cvl@ a0b7ab5

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

cleaned up tests and examples according to the change of libraries setup in ABC

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

  • Property mode set to 100644
File size: 241 bytes
Line 
1#include<civlc.cvh>
2
3int check(int a, int b, int c, int d){
4 $assert((a+b) == (c+d), "assertion failed!\n");
5}
6
7int thread($proc x){
8 $wait(x);
9}
10
11int main(){
12 int a = 1, b = 2, c = 3, d = 4;
13
14 $spawn thread($self);
15 check(a,b,c,d);
16}
17
Note: See TracBrowser for help on using the repository browser.