source: CIVL/examples/library/civlc/equals.cvl@ 2e2a7a5

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

implemented $contains(); added test accordingly (LibraryTest.contains()).

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

  • Property mode set to 100644
File size: 200 bytes
Line 
1#include<civlc.h>
2
3void main(){
4 int* data;
5 _Bool r;
6
7 data = (int*) $malloc($root, sizeof(int)*2);
8 *data = 1;
9 *(data + 1) = 2;
10 r = $equals(data, data+1);
11 $assert(!r);
12 $free(data);
13}
Note: See TracBrowser for help on using the repository browser.