source:
doc/theses/rob_schluntz/examples/ctor/static_ctor.c@
1ed958c3
| Last change on this file since 1ed958c3 was 728df66, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 157 bytes | |
| Line | |
|---|---|
| 1 | struct X { |
| 2 | int y, z; |
| 3 | }; |
| 4 | void ?{}(X *); |
| 5 | void ?{}(X *, int, int); |
| 6 | void ^?{}(X *); |
| 7 | |
| 8 | int f(int x) { |
| 9 | static X a; |
| 10 | static X b = { x, x }; |
| 11 | static X c = b; |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.