Ignore:
Timestamp:
Jun 20, 2016, 3:03:18 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
21eb693
Parents:
9724df0
Message:

update test programs, half done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Context.c

    r9724df0 ra0dcd2e  
    1 //cforall context declaration
    2 context has_q( otype T ) {
     1// trait declaration
     2trait has_q( otype T ) {
    33        T q( T );
    44};
    55
    66forall( otype z | has_q( z ) ) void f() {
    7         context has_r( otype T, otype U ) {
     7        trait has_r( otype T, otype U ) {
    88                T r( T, T (T,U) );
    99        };
Note: See TracChangeset for help on using the changeset viewer.