- Timestamp:
- Jan 18, 2021, 3:34:57 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4b1c8da
- Parents:
- e35a32b
- Location:
- tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/poly-selection.txt
re35a32b rfcd0b9d7 1 1 friending generically 2 2 friending specifically 3 - 4 f-generic 5 f-specific -
tests/avltree/avl.h
re35a32b rfcd0b9d7 57 57 void ?{}(tree(K, V) &t, K key, V value); 58 58 59 forall(otype K , otype V)59 forall(otype K | Comparable(K), otype V) 60 60 void ^?{}(tree(K, V) & t); 61 61 -
tests/avltree/avl1.cfa
re35a32b rfcd0b9d7 13 13 } 14 14 15 forall(otype K , otype V)15 forall(otype K| Comparable(K), otype V) 16 16 void ^?{}(tree(K, V) & t){ 17 17 delete(t.left); -
tests/poly-selection.cfa
re35a32b rfcd0b9d7 35 35 } 36 36 37 void testSpecializationFromGenericAccessibleWithExtraTyvars() { 38 39 forall( dtype T, dtype U ) 40 struct map {}; 41 42 forall( dtype T ) 43 void f( T & ) { 44 printf("f-generic\n"); 45 } 46 47 forall( dtype T ) 48 void f( map(T, T) & ) { 49 printf("f-specific\n"); 50 } 51 52 float one; 53 map(float, float) two; 54 f(one); 55 f(two); 56 } 37 57 38 58 int main() { 39 59 testSpecializationFromGenericOverBareTyvar(); 60 printf("-\n"); 61 testSpecializationFromGenericAccessibleWithExtraTyvars(); 40 62 }
Note: See TracChangeset
for help on using the changeset viewer.