source: CIVL/examples/languageFeatures/bundleArray.cvl@ d8bb437

1.23 2.0 main test-branch
Last change on this file since d8bb437 was 823c3cb, checked in by Tim Zirkel <zirkeltk@…>, 13 years ago

Removed unused size argument in bundle_unpack.

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

  • Property mode set to 100644
File size: 239 bytes
Line 
1#include<civlc.h>
2
3$input int N;
4$assume(N>=2);
5$input double a[N];
6
7void main() {
8 double b[N];
9 $bundle bun;
10
11 bun = $bundle_pack(&a[0], N*sizeof(double));
12 $bundle_unpack(bun, &b[0]);
13 $assert(a[0]==b[0]);
14 $assert(a[1]==b[1]);
15}
Note: See TracBrowser for help on using the repository browser.