source:
tests/enum_tests/pointerEnum.cfa@
39b2403
| Last change on this file since 39b2403 was 8bb86ce, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 159 bytes | |
| Rev | Line | |
|---|---|---|
| [12df6fe] | 1 | #include <fstream.hfa> |
| 2 | ||
| 3 | struct E { | |
| 4 | int x; | |
| 5 | }; | |
| 6 | struct E e = {1}; | |
| 7 | enum(E *) { | |
| 8 | First = &e, | |
| 9 | }; | |
| 10 | ||
| 11 | int main() { | |
| 12 | E * v = First; | |
| [8bb86ce] | 13 | // sout | "v: " | e.x; |
| [12df6fe] | 14 | } |
Note:
See TracBrowser
for help on using the repository browser.