source:
tests/zombies/gc_no_raii/bug-repro/deref.c@
e426c6f
| Last change on this file since e426c6f was 6e1e2d0, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 275 bytes | |
| Rev | Line | |
|---|---|---|
| [6e1e2d0] | 1 | forall(T) |
| 2 | struct wrap | |
| 3 | { | |
| 4 | T val; | |
| 5 | }; | |
| 6 | ||
| 7 | forall(T) | |
| 8 | T *? (wrap(T) rhs) | |
| 9 | { | |
| 10 | return rhs.val; | |
| 11 | } | |
| 12 | ||
| 13 | int main(int argc, char const *argv[]) | |
| 14 | { | |
| 15 | wrap(int) test; | |
| 16 | test.val = 3; | |
| 17 | int i = *test; | |
| 18 | return 0; | |
| 19 | } |
Note:
See TracBrowser
for help on using the repository browser.