source: src/tests/Context.c @ a0dcd2e

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
Line 
1// trait declaration
2trait has_q( otype T ) {
3        T q( T );
4};
5
6forall( otype z | has_q( z ) ) void f() {
7        trait has_r( otype T, otype U ) {
8                T r( T, T (T,U) );
9        };
10
11        extern otype x, y | has_r( x, y );
12}
13
14//Dummy main
15int main(int argc, char const *argv[])
16{
17        return 0;
18}
Note: See TracBrowser for help on using the repository browser.