source: src/Tests/SynTree/Initialization.c @ 59db689

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 59db689 was a65d92e, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

regression testing, second attempt

  • Property mode set to 100644
File size: 439 bytes
Line 
1// Cforall extensions
2
3int * x21 = 0, x22 = 0;
4int * x21 = 0, x22 = 0;
5
6[20] int y1, y2 = { 1, 2, 3 };
7
8// designators
9
10struct {
11        [int] w;
12} a = { .w : [2] };
13
14struct { int a[3], b; } w [] = { [0].a : {1}, [0].b : 1, [1].a[0] : 2 };
15
16struct {
17        int f1, f2, f3;
18        struct { int g1, g2, g3; } f4[4];
19} v7 = {
20  .f1 : 4,
21  f2 : 3,
22  .f4[2] : {
23          .g1 : 3,
24          g3 : 0,
25        },
26  .f4[3].g3 : 7,
27};
28
29// Local Variables: //
30// tab-width: 4 //
31// End: //
Note: See TracBrowser for help on using the repository browser.