- Timestamp:
- Jun 7, 2021, 2:09:12 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5a46e09
- Parents:
- 82f4063 (diff), 53692b3 (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:
-
- 1 added
- 1 deleted
- 44 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/array.txt
r82f4063 rbae0d35 1 array.cfa: In function '_X4mainFi___1': 2 array.cfa:55:9: note: #pragma message: Compiled 1 array.cfa:52:25: warning: Compiled -
tests/.expect/cast.txt
r82f4063 rbae0d35 1 cast.cfa: In function '_X4mainFi_iPPKc__1': 2 cast.cfa:18:9: note: #pragma message: Compiled 1 cast.cfa:16:25: warning: Compiled -
tests/.expect/expression.txt
r82f4063 rbae0d35 1 expression.cfa: In function '_X4mainFi___1': 2 expression.cfa:89:9: note: #pragma message: Compiled 1 expression.cfa:86:25: warning: Compiled -
tests/.expect/forall.txt
r82f4063 rbae0d35 1 forall.cfa: In function '_X4mainFi___1': 2 forall.cfa:218:9: note: #pragma message: Compiled 1 forall.cfa:216:25: warning: Compiled -
tests/.expect/identFuncDeclarator.txt
r82f4063 rbae0d35 1 identFuncDeclarator.cfa: In function '_X4mainFi___1': 2 identFuncDeclarator.cfa:116:9: note: #pragma message: Compiled 1 identFuncDeclarator.cfa:114:25: warning: Compiled -
tests/.expect/init1-ERROR.nast.txt
r82f4063 rbae0d35 1 init1.cfa:134:25: warning: Compiled 1 2 init1.cfa:56:1 error: Invalid application of existing declaration(s) in expression Untyped Init Expression 2 3 Name: rx InitAlternative: reference to signed int -
tests/.expect/init1.txt
r82f4063 rbae0d35 1 init1.cfa: In function '_X4mainFi___1': 2 init1.cfa:136:9: note: #pragma message: Compiled 1 init1.cfa:134:25: warning: Compiled -
tests/.expect/labelledExit.txt
r82f4063 rbae0d35 1 labelledExit.cfa: In function '_X4mainFi_iPPKc__1': 2 labelledExit.cfa:183:9: note: #pragma message: Compiled 1 labelledExit.cfa:181:25: warning: Compiled -
tests/.expect/limits.txt
r82f4063 rbae0d35 1 limits.cfa: In function '_X4mainFi_iPPKc__1': 2 limits.cfa:154:9: note: #pragma message: Compiled 1 limits.cfa:152:25: warning: Compiled -
tests/.expect/nested-types-ERR1.txt
r82f4063 rbae0d35 1 nested-types.cfa:100:25: warning: Compiled 1 2 nested-types.cfa:83:1 error: Use of undefined type T -
tests/.expect/nested-types-ERR2.txt
r82f4063 rbae0d35 1 nested-types.cfa:100:25: warning: Compiled 1 2 nested-types.cfa:86:1 error: Use of undefined global type Z 2 3 nested-types.cfa:87:1 error: Qualified type requires an aggregate on the left, but has: signed int -
tests/.expect/nested-types.txt
r82f4063 rbae0d35 1 nested-types.cfa: In function '_X4mainFi___1': 2 nested-types.cfa:102:9: note: #pragma message: Compiled 1 nested-types.cfa:100:25: warning: Compiled -
tests/.expect/numericConstants.txt
r82f4063 rbae0d35 1 numericConstants.cfa: In function '_X4mainFi___1': 2 numericConstants.cfa:68:9: note: #pragma message: Compiled 1 numericConstants.cfa:66:25: warning: Compiled -
tests/.expect/quasiKeyword.txt
r82f4063 rbae0d35 1 quasiKeyword.cfa: In function '_X4mainFi_iPPKc__1': 2 quasiKeyword.cfa:56:9: note: #pragma message: Compiled 1 quasiKeyword.cfa:54:25: warning: Compiled -
tests/.expect/switch.txt
r82f4063 rbae0d35 1 switch.cfa: In function '_X4mainFi___1': 2 switch.cfa:105:9: note: #pragma message: Compiled 1 switch.cfa:103:25: warning: Compiled -
tests/.expect/typedefRedef-ERR1.txt
r82f4063 rbae0d35 1 typedefRedef.cfa:69:25: warning: Compiled 1 2 typedefRedef.cfa:4:1 error: Cannot redefine typedef: Foo 2 3 typedefRedef.cfa:59:1 error: Cannot redefine typedef: ARR -
tests/.expect/typedefRedef.txt
r82f4063 rbae0d35 1 typedefRedef.cfa: In function '_X4mainFi___1': 2 typedefRedef.cfa:71:9: note: #pragma message: Compiled 1 typedefRedef.cfa:69:25: warning: Compiled -
tests/.expect/variableDeclarator.txt
r82f4063 rbae0d35 1 variableDeclarator.cfa: In function '_X4mainFi_iPPKc__1': 2 variableDeclarator.cfa:182:9: note: #pragma message: Compiled 1 variableDeclarator.cfa:180:25: warning: Compiled -
tests/Makefile.am
r82f4063 rbae0d35 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Mar 2 21:39:01202114 ## Update Count : 9 013 ## Last Modified On : Sat Jun 5 14:49:25 2021 14 ## Update Count : 92 15 15 ############################################################################### 16 16 … … 173 173 174 174 SYNTAX_ONLY_CODE = expression typedefRedef variableDeclarator switch numericConstants identFuncDeclarator forall \ 175 init1 limits nested-types stdincludes cast labelledExit array quasiKeywordinclude/includes builtins/sync warnings/self-assignment175 init1 limits nested-types cast labelledExit array quasiKeyword include/stdincludes include/includes builtins/sync warnings/self-assignment 176 176 $(SYNTAX_ONLY_CODE): % : %.cfa $(CFACCBIN) 177 177 $(CFACOMPILE_SYNTAX) -
tests/array.cfa
r82f4063 rbae0d35 11 11 // Created On : Tue Feb 19 21:18:06 2019 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : S un Sep 27 09:05:40 202014 // Update Count : 413 // Last Modified On : Sat Jun 5 10:05:51 2021 14 // Update Count : 5 15 15 // 16 16 … … 50 50 51 51 int main() { 52 #if !defined(NO_COMPILED_PRAGMA) 53 #pragma message( "Compiled" ) // force non-empty .expect file 54 #endif 52 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 55 53 } 56 54 -
tests/builtins/.expect/sync.txt
r82f4063 rbae0d35 1 builtins/sync.cfa: In function '_X4mainFi___1': 2 builtins/sync.cfa:358:9: note: #pragma message: Compiled 1 builtins/sync.cfa:356:25: warning: Compiled -
tests/builtins/sync.cfa
r82f4063 rbae0d35 354 354 355 355 int main() { 356 #pragma message( "Compiled" ) // force non-empty .expect file 356 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 357 357 } -
tests/cast.cfa
r82f4063 rbae0d35 14 14 //Dummy main 15 15 int main( int argc, char const * argv[] ) { 16 #pragma message( "Compiled" ) // force non-empty .expect file 16 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 17 17 } -
tests/concurrent/.expect/sleep.txt
r82f4063 rbae0d35 1 1 start 2 fast loop 0.0473 fast loop 0.0944 fast loop 0.1415 fast loop 0.1886 fast loop 0.2357 slow loop 0.2778 fast loop 0.2829 fast loop 0.32910 fast loop 0.37611 fast loop 0.42312 fast loop 0.4713 fast loop 0.51714 slow loop 0.55415 fast loop 0.56416 fast loop 0.61117 fast loop 0.65818 fast loop 0.70519 fast loop 0.75220 fast loop 0.79921 slow loop 0.83122 fast loop 0.84623 fast loop 0.89324 fast loop 0.9425 slow loop 1.10826 2 done -
tests/concurrent/sleep.cfa
r82f4063 rbae0d35 7 7 } 8 8 9 volatile int counter = 0; 10 9 11 thread fast_sleeper {}; 10 12 void main(fast_sleeper &) { … … 12 14 for(i; 20) { 13 15 sleep(wait); 14 sout | acquire | "fast loop" | ((1 + i) * wait);16 __atomic_fetch_add( &counter, 1, __ATOMIC_RELAXED ); 15 17 } 16 18 } … … 20 22 Duration wait = 277`ms; 21 23 for(i; 4) { 22 23 24 sleep(wait); 24 sout | acquire | "slow loop" | ((1 + i) * wait); 25 int val = __atomic_add_fetch( &counter, -5, __ATOMIC_RELAXED ); 26 if(val < -9) abort | "Value reached negative value:" | val; 25 27 } 26 28 } -
tests/expression.cfa
r82f4063 rbae0d35 84 84 (S)@{2}`mary; 85 85 86 #if !defined(NO_COMPILED_PRAGMA) 87 #pragma message( "Compiled" ) // force non-empty .expect file 88 #endif 86 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 89 87 } // main -
tests/forall.cfa
r82f4063 rbae0d35 10 10 // Created On : Wed May 9 08:48:15 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 08:43:20 202013 // Update Count : 3 512 // Last Modified On : Sat Jun 5 10:06:08 2021 13 // Update Count : 36 14 14 // 15 15 … … 214 214 215 215 int main( void ) { 216 #pragma message( "Compiled" ) // force non-empty .expect file 216 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 217 217 } 218 218 -
tests/identFuncDeclarator.cfa
r82f4063 rbae0d35 10 10 // Created On : Wed Aug 17 08:36:34 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 08:20:46 202013 // Update Count : 512 // Last Modified On : Sat Jun 5 10:06:25 2021 13 // Update Count : 6 14 14 // 15 15 … … 112 112 int (* const(* const f81)(int))(); 113 113 114 #pragma message( "Compiled" ) // force non-empty .expect file 114 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 115 115 } 116 116 -
tests/include/.expect/includes.nast.txt
r82f4063 rbae0d35 1 include/includes.cfa: In function '_X4mainFi_iPPKc__1': 2 include/includes.cfa:156:9: note: #pragma message: Compiled 1 include/includes.cfa:154:25: warning: Compiled -
tests/include/includes.cfa
r82f4063 rbae0d35 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 25 09:08:26 202113 // Update Count : 75 012 // Last Modified On : Sat Jun 5 10:06:46 2021 13 // Update Count : 751 14 14 // 15 15 … … 152 152 153 153 int main( int argc, char const *argv[] ) { 154 #pragma message( "Compiled" ) // force non-empty .expect file 154 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 155 155 } 156 156 -
tests/include/stdincludes.cfa
r82f4063 rbae0d35 10 10 // Created On : Tue Aug 29 08:26:14 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 08:51:38 202013 // Update Count : 812 // Last Modified On : Sat Jun 5 10:08:11 2021 13 // Update Count : 9 14 14 // 15 15 … … 48 48 49 49 int main() { 50 #pragma message( "Compiled" ) // force non-empty .expect file 50 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 51 51 } 52 52 -
tests/init1.cfa
r82f4063 rbae0d35 10 10 // Created On : Thu Jul 16 22:00:00 2020 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Oct 11 10:26:50 202013 // Update Count : 812 // Last Modified On : Sat Jun 5 10:06:57 2021 13 // Update Count : 9 14 14 // 15 15 … … 132 132 133 133 int main() { 134 #pragma message( "Compiled" ) // force non-empty .expect file134 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 135 135 } -
tests/labelledExit.cfa
r82f4063 rbae0d35 10 10 // Created On : Wed Aug 10 07:29:39 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 09:01:34 202013 // Update Count : 1 212 // Last Modified On : Sat Jun 5 10:07:34 2021 13 // Update Count : 13 14 14 // 15 15 … … 179 179 180 180 int main( int argc, char const *argv[] ) { 181 #pragma message( "Compiled" ) // force non-empty .expect file 181 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 182 182 } 183 183 -
tests/limits.cfa
r82f4063 rbae0d35 10 10 // Created On : Tue May 10 20:44:20 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 08:45:43 202013 // Update Count : 1 012 // Last Modified On : Sat Jun 5 10:07:32 2021 13 // Update Count : 11 14 14 // 15 15 … … 150 150 151 151 int main(int argc, char const *argv[]) { 152 #pragma message( "Compiled" ) // force non-empty .expect file 152 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 153 153 } 154 154 -
tests/nested-types.cfa
r82f4063 rbae0d35 10 10 // Created On : Mon Jul 9 10:20:03 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 08:48:59 202013 // Update Count : 612 // Last Modified On : Sat Jun 5 10:07:42 2021 13 // Update Count : 7 14 14 // 15 15 … … 98 98 // A.N(int) x; // xxx - should not be an error, but currently is. 99 99 100 #pragma message( "Compiled" ) // force non-empty .expect file 100 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 101 101 } 102 102 -
tests/numericConstants.cfa
r82f4063 rbae0d35 10 10 // Created On : Wed May 24 22:10:36 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 07:55:22 202013 // Update Count : 712 // Last Modified On : Sat Jun 5 10:07:52 2021 13 // Update Count : 8 14 14 // 15 15 … … 64 64 0x_1.ffff_ffff_p_128_l; 65 65 66 #pragma message( "Compiled" ) // force non-empty .expect file 66 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 67 67 } // main 68 68 -
tests/pybin/tools.py
r82f4063 rbae0d35 387 387 # make a directory for this test 388 388 # mkdir makes the parent directory only so add a dummy 389 mkdir( os.path.join(dst, name ))389 mkdir( os.path.join(dst, "core") ) 390 390 391 391 # moves the files 392 392 mv( core, os.path.join(dst, "core" ) ) 393 mv( exe , os.path.join(dst, name) )393 mv( exe , os.path.join(dst, "exe" ) ) 394 394 395 395 # return explanatory test -
tests/quasiKeyword.cfa
r82f4063 rbae0d35 8 8 // Created On : Wed Feb 17 10:33:49 2021 9 9 // Last Modified By : Peter A. Buhr 10 // Last Modified On : S un Feb 21 15:52:04202111 // Update Count : 710 // Last Modified On : Sat Jun 5 10:07:59 2021 11 // Update Count : 8 12 12 // 13 13 … … 52 52 else catch = 3; 53 53 54 #pragma message( "Compiled" ) // force non-empty .expect file 54 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 55 55 } -
tests/switch.cfa
r82f4063 rbae0d35 10 10 // Created On : Tue Jul 12 06:50:22 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 08:35:02 202013 // Update Count : 4 312 // Last Modified On : Sat Jun 5 10:08:20 2021 13 // Update Count : 44 14 14 // 15 15 … … 101 101 } // choose 102 102 103 #pragma message( "Compiled" ) // force non-empty .expect file 103 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 104 104 } // main 105 105 -
tests/typedefRedef.cfa
r82f4063 rbae0d35 67 67 typedef int *** pt; 68 68 69 #pragma message( "Compiled" ) // force non-empty .expect file 69 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 70 70 } -
tests/unified_locking/fast.cfa
r82f4063 rbae0d35 8 8 fast_lock l; 9 9 $thread * id; 10 size_t sum;10 uint32_t sum; 11 11 }; 12 12 … … 20 20 } 21 21 22 u nsignedcs() {22 uint32_t cs() { 23 23 $thread * me = active_thread(); 24 u nsigned value = (unsigned)me;24 uint32_t value = (uint32_t)me; 25 25 lock(mo.l); 26 26 { 27 size_t tsum = mo.sum;27 uint32_t tsum = mo.sum; 28 28 mo.id = me; 29 29 yield(random(5)); … … 36 36 37 37 thread LockCheck { 38 size_t sum;38 uint32_t sum; 39 39 }; 40 40 … … 50 50 51 51 int main() { 52 size_t sum = -32;52 uint32_t sum = -32; 53 53 mo.sum = -32; 54 54 processor p[2]; -
tests/unified_locking/timeout_lock.cfa
r82f4063 rbae0d35 1 1 #include <stdio.h> 2 #include "locks.hfa"3 #include "alarm.hfa"2 #include <locks.hfa> 3 #include <alarm.hfa> 4 4 #include <stdlib.hfa> 5 5 #include <thread.hfa> 6 #include "kernel.cfa"6 #include <kernel.hfa> 7 7 8 8 multiple_acquisition_lock m, n; … … 33 33 34 34 for ( unsigned int i = 0; i < NoOfTimes + 3; i += 1 ) { 35 if ( wait( c_m, m, 1000000`ns ) ) { 35 if ( wait( c_m, m, 1000000`ns ) ) { 36 36 // printf("Thread: %p signalled\n", active_thread()); // removed since can't expect non deterministic output 37 37 } else { … … 73 73 processor p[2]; 74 74 printf("Start Test 1: surface testing condition variable timeout routines\n"); 75 wait( c_m, 1`ns ); // bool wait( condition_variable(L) & this, Duration duration ); 75 wait( c_m, 1`ns ); // bool wait( condition_variable(L) & this, Duration duration ); 76 76 wait( c_m, 10, 1`ns ); // bool wait( condition_variable(L) & this, uintptr_t info, Duration duration ); 77 77 lock(m); wait( c_m, m, 1`ns ); unlock(m); // bool wait( condition_variable(L) & this, L & l, Duration duration ); -
tests/variableDeclarator.cfa
r82f4063 rbae0d35 10 10 // Created On : Wed Aug 17 08:41:42 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 07:46:17 202013 // Update Count : 1 312 // Last Modified On : Sat Jun 5 10:08:47 2021 13 // Update Count : 14 14 14 // 15 15 … … 178 178 //Dummy main 179 179 int main( int argc, char const * argv[] ) { 180 #pragma message( "Compiled" ) // force non-empty .expect file 180 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 181 181 } 182 182 -
tests/warnings/.expect/self-assignment.nast.txt
r82f4063 rbae0d35 1 warnings/self-assignment.cfa:34:25: warning: Compiled 1 2 warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of: 2 3 Variable Expression: j: signed int … … 46 47 ... with resolved type: 47 48 reference to signed int 48 warnings/self-assignment.cfa: In function '_X4mainFi___1':49 warnings/self-assignment.cfa:36:9: note: #pragma message: Compiled -
tests/warnings/self-assignment.cfa
r82f4063 rbae0d35 10 10 // Created On : Thu Mar 1 13:53:57 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Sep 27 09:24:34 202013 // Update Count : 612 // Last Modified On : Sat Jun 5 10:08:56 2021 13 // Update Count : 7 14 14 // 15 15 … … 32 32 t.s.i = t.s.i; 33 33 34 #pragma message( "Compiled" ) // force non-empty .expect file 34 #pragma GCC warning "Compiled" // force non-empty .expect file, NO TABS!!! 35 35 } 36 36
Note:
See TracChangeset
for help on using the changeset viewer.