- Timestamp:
- Oct 7, 2020, 5:10:45 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 490fb92e, 69c5c00
- Parents:
- 2fb35df (diff), 848439f (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. - Location:
- tests
- Files:
-
- 2 added
- 7 edited
- 2 moved
-
.expect/array.txt (modified) (1 diff)
-
.expect/expression.txt (modified) (1 diff)
-
.expect/poly-d-cycle.txt (moved) (moved from tests/.expect/poly-cycle.txt )
-
.expect/poly-o-cycle.txt (added)
-
array.cfa (modified) (3 diffs)
-
concurrent/park/contention.cfa (modified) (2 diffs)
-
concurrent/park/force_preempt.cfa (modified) (2 diffs)
-
concurrent/park/start_parked.cfa (modified) (2 diffs)
-
expression.cfa (modified) (1 diff)
-
poly-d-cycle.cfa (added)
-
poly-o-cycle.cfa (moved) (moved from tests/poly-cycle.cfa ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/array.txt
r2fb35df r41b8ea4 1 1 array.cfa: In function '_X4mainFi___1': 2 array.cfa:5 4:9: note: #pragma message: Compiled2 array.cfa:55:9: note: #pragma message: Compiled -
tests/.expect/expression.txt
r2fb35df r41b8ea4 1 1 expression.cfa: In function '_X4mainFi___1': 2 expression.cfa:8 8:9: note: #pragma message: Compiled2 expression.cfa:89:9: note: #pragma message: Compiled -
tests/array.cfa
r2fb35df r41b8ea4 1 // -*- Mode: C -*- 2 // 1 // -*- Mode: C -*- 2 // 3 3 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 4 4 // 5 5 // The contents of this file are covered under the licence agreement in the 6 6 // file "LICENCE" distributed with Cforall. 7 // 7 // 8 8 // array.cfa -- test array declarations 9 // 9 // 10 10 // Author : Peter A. Buhr 11 11 // Created On : Tue Feb 19 21:18:06 2019 … … 13 13 // Last Modified On : Sun Sep 27 09:05:40 2020 14 14 // Update Count : 4 15 // 15 // 16 16 17 17 int a1[0]; … … 50 50 51 51 int main() { 52 #pragma message( "Compiled" ) // force non-empty .expect file 52 #if !defined(NO_COMPILED_PRAGMA) 53 #pragma message( "Compiled" ) // force non-empty .expect file 54 #endif 53 55 } 54 56 -
tests/concurrent/park/contention.cfa
r2fb35df r41b8ea4 21 21 if(blocked[idx]) { 22 22 Thread * thrd = __atomic_exchange_n(&blocked[idx], 0p, __ATOMIC_SEQ_CST); 23 unpark( *thrd __cfaabi_dbg_ctx2);23 unpark( *thrd ); 24 24 } else { 25 25 Thread * thrd = __atomic_exchange_n(&blocked[idx], &this, __ATOMIC_SEQ_CST); 26 unpark( *thrd __cfaabi_dbg_ctx2);27 park( __cfaabi_dbg_ctx);26 unpark( *thrd ); 27 park(); 28 28 } 29 29 } … … 41 41 int idx = myrand() % blocked_size; 42 42 Thread * thrd = __atomic_exchange_n(&blocked[idx], 0p, __ATOMIC_SEQ_CST); 43 unpark( *thrd __cfaabi_dbg_ctx2);43 unpark( *thrd ); 44 44 yield( myrand() % 20 ); 45 45 } -
tests/concurrent/park/force_preempt.cfa
r2fb35df r41b8ea4 30 30 31 31 // Unpark this thread, don't force a yield 32 unpark( this __cfaabi_dbg_ctx2);32 unpark( this ); 33 33 assert(mask == 0xCAFEBABA); 34 34 … … 43 43 // Park this thread, 44 44 assert(mask == (id_hash ^ 0xCAFEBABA)); 45 park( __cfaabi_dbg_ctx);45 park(); 46 46 assert(mask == (id_hash ^ 0xCAFEBABA)); 47 47 -
tests/concurrent/park/start_parked.cfa
r2fb35df r41b8ea4 3 3 thread Parker {}; 4 4 void main( Parker & ) { 5 park( __cfaabi_dbg_ctx);5 park(); 6 6 } 7 7 … … 9 9 for(1000) { 10 10 Parker parker; 11 unpark( parker __cfaabi_dbg_ctx2);11 unpark( parker ); 12 12 } 13 13 printf( "done\n" ); // non-empty .expect file -
tests/expression.cfa
r2fb35df r41b8ea4 84 84 (S)@{2}`mary; 85 85 86 #pragma message( "Compiled" ) // force non-empty .expect file 86 #if !defined(NO_COMPILED_PRAGMA) 87 #pragma message( "Compiled" ) // force non-empty .expect file 88 #endif 87 89 } // main -
tests/poly-o-cycle.cfa
r2fb35df r41b8ea4 1 // Check that a cycle of polymorphic datastructures can be instancated.1 // Check that a cycle of polymorphic otype structures can be instancated. 2 2 3 3 #include <stdio.h>
Note:
See TracChangeset
for help on using the changeset viewer.