source: tests/zombies/gc_no_raii/bug-repro/return_template.c @ 038110a

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 038110a was 87b9332, checked in by Andrew Beach <ajbeach@…>, 4 years ago

Moved 'examples/' to 'tests/zombies/'.

  • Property mode set to 100644
File size: 306 bytes
Line 
1forall(otype T)
2struct wrap
3{
4        T value;
5};
6
7forall(otype T) void ?{}(wrap(T)* this);
8forall(otype T) void ?{}(wrap(T)* this, wrap(T)* rhs);
9forall(otype T) void ^?{}(wrap(T)* this);
10forall(otype T) void ?=?(wrap(T)* this, wrap(T)* rhs);
11
12forall(otype T)
13wrap(T) test()
14{
15        wrap(T) tester;
16        return tester;
17}
Note: See TracBrowser for help on using the repository browser.