source:
tests/poly-member.cfa@
57c7e6c4
| Last change on this file since 57c7e6c4 was 10b5970, checked in by , 10 months ago | |
|---|---|
|
|
| File size: 323 bytes | |
| Rev | Line | |
|---|---|---|
| [bdf40650] | 1 | forall( T & ) |
| 2 | struct Proxy {}; | |
| 3 | ||
| 4 | struct MonoCell { | |
| 5 | Proxy(int) data; | |
| 6 | }; | |
| 7 | ||
| 8 | forall( T & ) | |
| 9 | struct PolyCell { | |
| 10 | Proxy(T) data; | |
| 11 | }; | |
| 12 | ||
| 13 | int main() { | |
| 14 | { | |
| 15 | MonoCell thing1; | |
| 16 | Proxy(int) & thing2 = thing1.data; | |
| [10b5970] | 17 | (void) thing2; |
| [bdf40650] | 18 | } |
| 19 | ||
| 20 | { | |
| 21 | PolyCell(int) thing1; | |
| 22 | Proxy(int) & thing2 = thing1.data; | |
| [10b5970] | 23 | (void) thing2; |
| [bdf40650] | 24 | } |
| 25 | ||
| 26 | printf("Done\n"); | |
| 27 | } |
Note:
See TracBrowser
for help on using the repository browser.