Changeset 55ba733 for src/Tests/Quad.c
- Timestamp:
- Jun 14, 2016, 12:33:57 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:
- e04ef3a
- Parents:
- 4c82a3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tests/Quad.c
r4c82a3c r55ba733 2 2 int ?*?( int, int ); 3 3 4 forall( type T | { T ?*?( T, T ); } )4 forall( otype T | { T ?*?( T, T ); } ) 5 5 T square( T t ) { 6 6 return t * t; 7 7 } 8 8 9 forall( type U | { U square( U ); } )9 forall( otype U | { U square( U ); } ) 10 10 U quad( U u ) { 11 11 return square( square( u ) );
Note: See TracChangeset
for help on using the changeset viewer.