stuck-waitfor-destruct
|
Last change
on this file was 2cb10170, checked in by Alvin Zhang <alvin.zhang@…>, 4 weeks ago |
|
stitched modules proposal
|
-
Property mode
set to
100644
|
|
File size:
398 bytes
|
| Line | |
|---|
| 1 | module;
|
|---|
| 2 |
|
|---|
| 3 | import b;
|
|---|
| 4 |
|
|---|
| 5 | struct struct_2 {
|
|---|
| 6 | // Uses a because own module shadows imported b
|
|---|
| 7 | global_1;
|
|---|
| 8 | };
|
|---|
| 9 | export int global_1;
|
|---|
| 10 |
|
|---|
| 11 | int function_1() {
|
|---|
| 12 | // This is not overloaded with b because they are never
|
|---|
| 13 | // exported into the same space
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | export struct struct_5 {
|
|---|
| 17 | // Uses b
|
|---|
| 18 | type struct_6;
|
|---|
| 19 | // Uses b
|
|---|
| 20 | global_2;
|
|---|
| 21 | };
|
|---|
| 22 | export struct struct_7 {
|
|---|
| 23 | // Uses b
|
|---|
| 24 | type *struct_8;
|
|---|
| 25 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.