ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since bb87dd0 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
|
Rev | Line | |
---|
[624aab0] | 1 | forall(otype T) |
---|
| 2 | struct wrap |
---|
| 3 | { |
---|
| 4 | T value; |
---|
| 5 | }; |
---|
| 6 | |
---|
[bee4283] | 7 | forall(otype T) void ?{}(wrap(T)* this); |
---|
| 8 | forall(otype T) void ?{}(wrap(T)* this, wrap(T)* rhs); |
---|
| 9 | forall(otype T) void ^?{}(wrap(T)* this); |
---|
| 10 | forall(otype T) void ?=?(wrap(T)* this, wrap(T)* rhs); |
---|
| 11 | |
---|
[624aab0] | 12 | forall(otype T) |
---|
[bee4283] | 13 | wrap(T) test() |
---|
[624aab0] | 14 | { |
---|
| 15 | wrap(T) tester; |
---|
| 16 | return tester; |
---|
| 17 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.