ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 874960b was
273080f,
checked in by Thierry Delisle <tdelisle@…>, 8 years ago
|
added a bunch of bug repros
|
-
Property mode set to
100644
|
File size:
323 bytes
|
Rev | Line | |
---|
[273080f] | 1 | forall(otype T) |
---|
| 2 | struct wrapper |
---|
| 3 | { |
---|
| 4 | T value; |
---|
| 5 | }; |
---|
| 6 | |
---|
| 7 | forall(otype T) |
---|
| 8 | wrapper(T) create() |
---|
| 9 | { |
---|
| 10 | wrapper(T) test; |
---|
| 11 | return test; |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | forall(otype T) |
---|
| 15 | wrapper(T)* ?=?(wrapper(T)* lhs, wrapper(T)* rhs) |
---|
| 16 | { |
---|
| 17 | lhs->value = rhs->value; |
---|
| 18 | return lhs; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | int main(int argc, char const *argv[]) |
---|
| 23 | { |
---|
| 24 | wrapper(int) test; |
---|
| 25 | test = create(); |
---|
| 26 | return 0; |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.