source: doc/rob_thesis/examples/ctor/array_ctor.c @ 55b2f5a

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 55b2f5a was 9c14ae9, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

add thesis source

  • Property mode set to 100644
File size: 274 bytes
Line 
1struct X { int x, y, z; };
2void ?{}(X *);
3void ?{}(X *, int);
4void ?{}(X *, int, int);
5void ?{}(X *, int, int, int);
6void ^?{}(X *);
7void f() {
8  X x[10] = { { 1, 2, 3 }, { 4 }, { 7, 8 } };
9}
10
11void g() {
12  X x[10][10] = {
13    { { 1, 2, 3 }, { 4 } },
14    { { 7, 8 } }
15  };
16}
Note: See TracBrowser for help on using the repository browser.