source:
doc/theses/rob_schluntz_MMath/examples/ctor/hide_ctor.c
@
43d9679
Last change on this file since 43d9679 was 67982887, checked in by , 6 years ago | |
---|---|
|
|
File size: 189 bytes |
Rev | Line | |
---|---|---|
[9c14ae9] | 1 | struct S { int x; }; |
2 | ||
3 | int main() { | |
4 | S s0; // okay | |
5 | { | |
6 | void ?{}(S * s, int i) { s->x = i*2; } | |
7 | void ?{}(S *s) { } | |
8 | // void ^?{}(S *s ) { } | |
9 | S s1; // error | |
10 | } | |
11 | S s2; // okay | |
12 | } |
Note: See TracBrowser
for help on using the repository browser.