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