Changeset b2b039d for src/tests/Context.c
- Timestamp:
- Jun 21, 2016, 12:11:40 PM (8 years ago)
- 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:
- 6bc4734
- Parents:
- f6d4204 (diff), 7ba3a25 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Context.c
rf6d4204 rb2b039d 1 //cforall context declaration 2 context has_q( otype T ) { 1 // trait declaration 2 3 trait has_q( otype T ) { 3 4 T q( T ); 4 5 }; 5 6 6 7 forall( otype z | has_q( z ) ) void f() { 7 context has_r( otype T, otype U ) {8 trait has_r( otype T, otype U ) { 8 9 T r( T, T (T,U) ); 9 10 };
Note: See TracChangeset
for help on using the changeset viewer.