Changeset a362f97 for src/tests/vector/array.c
- Timestamp:
- Jan 27, 2017, 3:27:34 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- c0aa336
- Parents:
- 6acb935 (diff), 0a86a30 (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/vector/array.c
r6acb935 ra362f97 16 16 #include "array.h" 17 17 18 /// forall( otype array_type, elt_type | bounded_array( array_type, elt_type ) ) 19 /// [ array_iterator begin, array_iterator end ] 20 /// get_iterators( array_type array ) 21 /// { 22 /// begin = 0; 23 /// end = last( array ); 24 /// } 18 forall( otype array_type, otype elt_type | bounded_array( array_type, elt_type ) ) 19 [ elt_type * begin, elt_type * end ] get_iterators( array_type * array ) { 20 return [ begin( array ), end( array ) ]; 21 } 25 22 26 23 // The first element is always at index 0.
Note: See TracChangeset
for help on using the changeset viewer.