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