source:
doc/theses/rob_schluntz_MMath/examples/ctor/static_ctor.c
@
4c63025
Last change on this file since 4c63025 was 67982887, checked in by , 6 years ago | |
---|---|
|
|
File size: 157 bytes |
Rev | Line | |
---|---|---|
[9c14ae9] | 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.