ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since a0dcd2e was
a0dcd2e,
checked in by Peter A. Buhr <pabuhr@…>, 8 years ago
|
update test programs, half done
|
-
Property mode set to
100644
|
File size:
270 bytes
|
Rev | Line | |
---|
[a0dcd2e] | 1 | // trait declaration |
---|
| 2 | trait has_q( otype T ) { |
---|
[62edde5] | 3 | T q( T ); |
---|
| 4 | }; |
---|
| 5 | |
---|
| 6 | forall( otype z | has_q( z ) ) void f() { |
---|
[a0dcd2e] | 7 | trait has_r( otype T, otype U ) { |
---|
[62edde5] | 8 | T r( T, T (T,U) ); |
---|
| 9 | }; |
---|
| 10 | |
---|
| 11 | extern otype x, y | has_r( x, y ); |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | //Dummy main |
---|
| 15 | int main(int argc, char const *argv[]) |
---|
| 16 | { |
---|
| 17 | return 0; |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.