source: doc/proposals/modules-alvin/1_stitched_modules/testing/noImports.cmod

stuck-waitfor-destruct
Last change on this file was 2cb10170, checked in by Alvin Zhang <alvin.zhang@…>, 3 weeks ago

stitched modules proposal

  • Property mode set to 100644
File size: 563 bytes
Line 
1module;
2
3export void fn_1() {}
4int fn_2(int a) {}
5struct struct_1 fn_3(struct struct_2 a, struct struct_3 *b) {
6 global_1;
7 type struct_4;
8 type *struct_5;
9}
10
11struct struct_1 {};
12export struct struct_2 {};
13struct struct_3 {
14 global_2;
15 type *struct_6;
16};
17struct struct_4 {
18 type struct_5;
19};
20export struct struct_5 {
21 type *struct_6;
22};
23struct struct_6 {
24 type struct_5;
25};
26
27int global_1;
28export int global_2 = global_3 + global_4 + global_1;
29int global_3 = global_5;
30struct struct_4 global_4;
31export struct struct_5 *global_5 = global_1;
Note: See TracBrowser for help on using the repository browser.