gcc/testsuite/gdc.test/compilable/test22674.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=22674 |
| 2 | // EXTRA_FILES: imports/cimports2a.i imports/cimports2b.i |
| 3 | |
| 4 | import imports.cimports2a; |
| 5 | import imports.cimports2b; |
| 6 | |
| 7 | void do_foo(){ |
| 8 | FooRef f = make_foo(); // use_foo.d(5) |
| 9 | free_foo(f); // use_foo.d(6) |
| 10 | } |
| 11 | |
| 12 | // https://issues.dlang.org/show_bug.cgi?id=23357 |
| 13 | |
| 14 | void do_foo2(){ |
| 15 | FooRef2 f = make_foo2(); |
| 16 | free_foo2(f); |
| 17 | } |