source: CIVL/examples/languageFeatures/bundleConcrete.cvl@ f24290c

1.23 2.0 main test-branch
Last change on this file since f24290c 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: 264 bytes
Line 
1#include<civlc.h>
2
3int N=5;
4$input double a[N];
5
6void main() {
7 double b[N];
8 $bundle bun;
9
10 for (int i=0; i<N; i++) a[i] = i;
11 bun = $bundle_pack(&a[0], 3*sizeof(double));
12 $bundle_unpack(bun, &b[0]);
13 for (int i=0; i<3; i++)
14 $assert(b[i] == a[i]);
15}
Note: See TracBrowser for help on using the repository browser.