source: CIVL/examples/languageFeatures/initialValues.cvl@ 8519490

1.23 2.0 main test-branch
Last change on this file since 8519490 was d643196, checked in by Ziqing Luo <ziqing@…>, 11 years ago

change $elaborate_rectangular_domain to $elaborate_domain

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

  • Property mode set to 100644
File size: 407 bytes
Line 
1#include<stdio.h>
2#include<civlc.cvh>
3#include<bundle.cvh>
4
5typedef enum INIT {zero, one} Init;
6typedef union{
7int a;
8float b;
9} MyUnion;
10
11$domain dom0;
12$domain(2) dom2;
13$bundle bun;
14Init enumVar;
15int * ptr;
16MyUnion myunion;
17int main() {
18 int a;
19
20 $elaborate_domain(dom0);
21 $elaborate_domain(dom2);
22 a = enumVar;
23 a = myunion.a;
24 ptr = &a;
25 $bundle_unpack(bun, &a);
26 return 0;
27}
Note: See TracBrowser for help on using the repository browser.