source:
tests/poly-member.cfa@
9c65169
Last change on this file since 9c65169 was 10b5970, checked in by , 9 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.