- Timestamp:
- Sep 4, 2020, 2:14:10 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:
- 14d8a9b
- Parents:
- 56c44dc (diff), 2801829 (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:
-
- 20 added
- 14 edited
- 8 moved
-
.expect/abs.arm64.txt (added)
-
.expect/abs.x64.txt (moved) (moved from tests/.expect/abs.txt )
-
.expect/abs.x86.txt (added)
-
.expect/alloc-ERROR.txt (modified) (3 diffs)
-
.expect/alloc.txt (modified) (1 diff)
-
.expect/alloc.txt.old (added)
-
.expect/alloc2.txt (added)
-
.expect/ato.arm64.txt (added)
-
.expect/ato.x64.txt (moved) (moved from tests/.expect/ato.txt )
-
.expect/ato.x86.txt (added)
-
.expect/castError.txt (modified) (7 diffs)
-
.expect/init1.txt (modified) (6 diffs)
-
.expect/malloc.txt (added)
-
.expect/manipulatorsOutput1.arm64.txt (added)
-
.expect/manipulatorsOutput1.x64.txt (moved) (moved from tests/.expect/manipulatorsOutput1.txt )
-
.expect/manipulatorsOutput1.x86.txt (added)
-
.expect/math1.arm64.txt (added)
-
.expect/math1.x64.txt (moved) (moved from tests/.expect/math1.txt )
-
.expect/math1.x86.txt (added)
-
.expect/math2.arm64.txt (added)
-
.expect/math2.x64.txt (moved) (moved from tests/.expect/math2.txt )
-
.expect/math2.x86.txt (added)
-
.expect/math3.arm64.txt (added)
-
.expect/math3.x64.txt (moved) (moved from tests/.expect/math3.txt )
-
.expect/math3.x86.txt (added)
-
.expect/random.arm64.txt (added)
-
.expect/random.x64.txt (moved) (moved from tests/.expect/random.txt )
-
.expect/random.x86.txt (added)
-
Makefile.am (modified) (1 diff)
-
alloc.cfa (modified) (22 diffs)
-
alloc2.cfa (added)
-
concurrent/examples/boundedBufferEXT.cfa (modified) (2 diffs)
-
concurrent/futures/.expect/basic.txt (moved) (moved from libcfa/src/concurrency/asyncio.hfa )
-
concurrent/futures/basic.cfa (added)
-
errors/.expect/completeType.x64.txt (modified) (4 diffs)
-
errors/.expect/completeType.x86.txt (modified) (4 diffs)
-
literals.cfa (modified) (3 diffs)
-
malloc.cfa (added)
-
pybin/tools.py (modified) (1 diff)
-
raii/.expect/ctor-autogen-ERR1.txt (modified) (4 diffs)
-
test.py (modified) (2 diffs)
-
warnings/.expect/self-assignment.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/alloc-ERROR.txt
r56c44dc rce55a81 1 alloc.cfa:36 2:1 error: No reasonable alternatives for expression Applying untyped:1 alloc.cfa:361:1 error: No reasonable alternatives for expression Applying untyped: 2 2 Name: ?=? 3 3 ...to: … … 16 16 Name: stp 17 17 18 with resolved type:19 unsigned long int20 18 21 19 22 20 23 alloc.cfa:36 3:1 error: No reasonable alternatives for expression Applying untyped:21 alloc.cfa:362:1 error: No reasonable alternatives for expression Applying untyped: 24 22 Name: ?=? 25 23 ...to: … … 30 28 Name: stp 31 29 constant expression (10 10: signed int) 32 with resolved type:33 signed int34 30 35 31 36 alloc.cfa:36 4:1 error: No reasonable alternatives for expression Applying untyped:32 alloc.cfa:363:1 error: No reasonable alternatives for expression Applying untyped: 37 33 Name: ?=? 38 34 ...to: -
tests/.expect/alloc.txt
r56c44dc rce55a81 14 14 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 0xdededede 15 15 CFA array alloc, fill 0xef 16 0x efefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef16 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 17 17 CFA array alloc, fill from array 18 0x efefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef, 0xefefefef 0xefefefef,18 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 0xdeadbeef 0xdeadbeef, 19 19 20 20 C realloc 21 0x efefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef21 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 22 22 CFA realloc 23 0x efefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0xefefefef 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x101010123 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0xdeadbeef 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 0x1010101 24 24 25 25 CFA realloc array alloc -
tests/.expect/castError.txt
r56c44dc rce55a81 3 3 Name: f 4 4 ... to: 5 char6 with resolved type:7 5 char Alternatives are: 8 6 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: … … 11 9 ... returning nothing 12 10 13 with resolved type:14 pointer to function15 accepting unspecified arguments16 ... returning nothing17 18 11 ... to: 19 char20 with resolved type:21 12 char 22 13 (types: … … 27 18 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: 28 19 Variable Expression: f: double 29 with resolved type:30 double31 20 ... to: 32 char33 with resolved type:34 21 char 35 22 (types: … … 40 27 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: 41 28 Variable Expression: f: signed int 42 with resolved type:43 signed int44 29 ... to: 45 char46 with resolved type:47 30 char 48 31 (types: … … 56 39 Comma Expression: 57 40 constant expression (3 3: signed int) 58 with resolved type:59 signed int60 41 Name: v 61 ... to: nothing 62 with resolved type: 63 void Alternatives are: 42 ... to: nothing Alternatives are: 64 43 Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of: 65 44 Comma Expression: 66 45 constant expression (3 3: signed int) 67 with resolved type:68 signed int69 46 Variable Expression: v: unsigned char 70 with resolved type:71 unsigned char72 with resolved type:73 unsigned char74 47 ... to: nothing 75 with resolved type:76 void77 48 (types: 78 49 void … … 83 54 Comma Expression: 84 55 constant expression (3 3: signed int) 85 with resolved type:86 signed int87 56 Variable Expression: v: signed short int 88 with resolved type:89 signed short int90 with resolved type:91 signed short int92 57 ... to: nothing 93 with resolved type:94 void95 58 (types: 96 59 void … … 106 69 char 107 70 108 with resolved type:109 instance of struct S with body 1110 ... with parameters111 char112 -
tests/.expect/init1.txt
r56c44dc rce55a81 11 11 ... to: 12 12 reference to signed int 13 with resolved type:14 reference to signed int15 13 init1.cfa:97:1 error: No reasonable alternatives for expression Applying untyped: 16 14 Name: ?{} … … 18 16 Generated Cast of: 19 17 Variable Expression: _retval_f_py: pointer to signed int 20 with resolved type:21 pointer to signed int22 18 ... to: 23 reference to pointer to signed int24 with resolved type:25 19 reference to pointer to signed int 26 20 Name: px … … 30 24 ... to: 31 25 reference to float 32 with resolved type:33 reference to float34 26 init1.cfa:107:1 error: No reasonable alternatives for expression Applying untyped: 35 27 Name: ?{} … … 37 29 Generated Cast of: 38 30 Variable Expression: _retval_f_py2: pointer to float 39 with resolved type:40 pointer to float41 31 ... to: 42 reference to pointer to float43 with resolved type:44 32 reference to pointer to float 45 33 Name: cpx … … 49 37 ... to: 50 38 reference to instance of type T (not function type) 51 with resolved type:52 reference to instance of type T (not function type)53 39 init1.cfa:118:1 error: No reasonable alternatives for expression Applying untyped: 54 40 Name: ?{} … … 56 42 Generated Cast of: 57 43 Variable Expression: _retval_anycvt: pointer to instance of type T (not function type) 58 with resolved type:59 pointer to instance of type T (not function type)60 44 ... to: 61 reference to pointer to instance of type T (not function type)62 with resolved type:63 45 reference to pointer to instance of type T (not function type) 64 46 Name: s -
tests/Makefile.am
r56c44dc rce55a81 67 67 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa 68 68 # automake doesn't know we still need C/CPP rules so pretend like we have a C program 69 _dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp69 nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp 70 70 71 71 #---------------------------------------------------------------------------------------------------------------- -
tests/alloc.cfa
r56c44dc rce55a81 47 47 free( ip ); 48 48 49 ip = alloc _set(fill ); // CFA alloc, fill49 ip = alloc( fill`fill ); // CFA alloc, fill 50 50 printf( "CFA alloc, fill %08x\n", *ip ); 51 51 free( ip ); 52 52 53 ip = alloc _set( 3); // CFA alloc, fill53 ip = alloc( 3`fill ); // CFA alloc, fill 54 54 printf( "CFA alloc, fill %d\n", *ip ); 55 55 free( ip ); … … 78 78 free( ip ); 79 79 80 ip = alloc _set( 2 * dim,fill ); // CFA array alloc, fill80 ip = alloc( 2 * dim, fill`fill ); // CFA array alloc, fill 81 81 printf( "CFA array alloc, fill %#hhx\n", fill ); 82 82 for ( i; 2 * dim ) { printf( "%#x ", ip[i] ); } … … 84 84 free( ip ); 85 85 86 ip = alloc _set( 2 * dim, 0xdeadbeef); // CFA array alloc, fill86 ip = alloc( 2 * dim, ((int)0xdeadbeef)`fill ); // CFA array alloc, fill 87 87 printf( "CFA array alloc, fill %#hhx\n", 0xdeadbeef ); 88 88 for ( i; 2 * dim ) { printf( "%#x ", ip[i] ); } … … 90 90 // do not free 91 91 92 ip1 = alloc _set( 2 * dim, ip, 2 * dim); // CFA array alloc, fill92 ip1 = alloc( 2 * dim, [ip, 2 * dim]`fill ); // CFA array alloc, fill 93 93 printf( "CFA array alloc, fill from array\n" ); 94 94 for ( i; 2 * dim ) { printf( "%#x %#x, ", ip[i], ip1[i] ); } … … 117 117 printf( "\n" ); 118 118 119 ip = alloc( ip, dim); // CFA realloc array alloc119 ip = alloc( dim, ip`realloc ); // CFA realloc array alloc 120 120 for ( i; dim ) { ip[i] = 0xdeadbeef; } 121 121 printf( "CFA realloc array alloc\n" ); … … 124 124 // do not free 125 125 126 ip = alloc( ip, 2 * dim); // CFA realloc array alloc126 ip = alloc( 2 * dim, ip`realloc ); // CFA realloc array alloc 127 127 for ( i; dim ~ 2 * dim ) { ip[i] = 0x1010101; } // fill upper part 128 128 printf( "CFA realloc array alloc\n" ); … … 131 131 // do not free 132 132 133 ip = alloc( ip, dim); // CFA realloc array alloc133 ip = alloc( dim, ip`realloc ); // CFA realloc array alloc 134 134 printf( "CFA realloc array alloc\n" ); 135 135 for ( i; dim ) { printf( "%#x ", ip[i] ); } … … 137 137 // do not free 138 138 139 ip = alloc _set( ip, 3 * dim,fill ); // CFA realloc array alloc, fill139 ip = alloc( 3 * dim, ip`realloc, fill`fill ); // CFA realloc array alloc, fill 140 140 printf( "CFA realloc array alloc, fill\n" ); 141 141 for ( i; 3 * dim ) { printf( "%#x ", ip[i] ); } … … 143 143 // do not free 144 144 145 ip = alloc _set( ip, dim,fill ); // CFA realloc array alloc, fill145 ip = alloc( dim, ip`realloc, fill`fill ); // CFA realloc array alloc, fill 146 146 printf( "CFA realloc array alloc, fill\n" ); 147 147 for ( i; dim ) { printf( "%#x ", ip[i] ); } … … 149 149 // do not free 150 150 151 ip = alloc _set( ip, 3 * dim,fill ); // CFA realloc array alloc, fill151 ip = alloc( 3 * dim, ip`realloc, fill`fill ); // CFA realloc array alloc, fill 152 152 printf( "CFA realloc array alloc, fill\n" ); 153 153 for ( i; 3 * dim ) { printf( "%#x ", ip[i] ); } … … 155 155 // do not free 156 156 #if 0 // FIX ME 157 ip = alloc _set( ip, 5 * dim, 5); // CFA realloc array alloc, 5157 ip = alloc( 5 * dim, ip`realloc, 5`fill ); // CFA realloc array alloc, 5 158 158 printf( "CFA realloc array alloc, 5\n" ); 159 159 for ( i; 5 * dim ) { printf( "%#x ", ip[i] ); } … … 161 161 // do not free 162 162 163 ip = alloc _set( ip, dim, 5); // CFA realloc array alloc, 5163 ip = alloc( dim, ip`realloc, 5`fill ); // CFA realloc array alloc, 5 164 164 printf( "CFA realloc array alloc, 5\n" ); 165 165 for ( i; dim ) { printf( "%#x ", ip[i] ); } … … 167 167 // do not free 168 168 169 ip = alloc _set( ip, 5 * dim, 5); // CFA realloc array alloc, 5169 ip = alloc( 5 * dim, ip`realloc, 5`fill ); // CFA realloc array alloc, 5 170 170 printf( "CFA realloc array alloc, 5\n" ); 171 171 for ( i; 5 * dim ) { printf( "%#x ", ip[i] ); } … … 182 182 ip = alloc(); 183 183 *ip = 5; 184 double * dp = alloc( ip );184 double * dp = alloc( ip`resize ); 185 185 *dp = 5.5; 186 S * sp = alloc( dp );186 S * sp = alloc( dp`resize ); 187 187 *sp = (S){ {0, 1, 2, 3, 4} }; 188 ip = alloc( sp );188 ip = alloc( sp`resize ); 189 189 *ip = 3; 190 190 free( ip ); … … 195 195 ip = alloc( 5 ); 196 196 for ( i; 5 ) { ip[i] = 5; } 197 dp = alloc( ip, 5);197 dp = alloc( 5, ip`resize ); 198 198 for ( i; 5 ) { dp[i] = 5.5; } 199 sp = alloc( dp, 5);199 sp = alloc( 5, dp`resize ); 200 200 for ( i; 5 ) { sp[i] = (S){ {0, 1, 2, 3, 4} }; } 201 ip = alloc( sp, 3);201 ip = alloc( 3, sp`resize ); 202 202 for ( i; 3 ) { ip[i] = 3; } 203 ip = alloc( ip, 7);203 ip = alloc( 7, ip`realloc ); 204 204 for ( i; 7 ) { ip[i] = 7; } 205 ip = alloc( ip, 7, false );205 ip = alloc( 7, ip`resize ); 206 206 for ( i; 7 ) { ip[i] = 7; } 207 207 free( ip ); … … 237 237 free( stp ); 238 238 239 stp = &(*alloc _align( Alignment)){ 42, 42.5 }; // CFA alloc_align239 stp = &(*alloc( Alignment`align)){ 42, 42.5 }; // CFA alloc_align 240 240 assert( (uintptr_t)stp % Alignment == 0 ); 241 241 printf( "CFA alloc_align %d %g\n", stp->x, stp->y ); 242 242 free( stp ); 243 243 244 stp = &(*alloc _align( Alignment)){ 42, 42.5 }; // CFA alloc_align244 stp = &(*alloc( Alignment`align )){ 42, 42.5 }; // CFA alloc_align 245 245 assert( (uintptr_t)stp % Alignment == 0 ); 246 246 printf( "CFA alloc_align %d %g\n", stp->x, stp->y ); 247 247 free( stp ); 248 248 249 stp = alloc _align_set( Alignment,fill ); // CFA memalign, fill249 stp = alloc( Alignment`align, fill`fill ); // CFA memalign, fill 250 250 assert( (uintptr_t)stp % Alignment == 0 ); 251 251 printf( "CFA alloc_align fill %#x %a\n", stp->x, stp->y ); 252 252 free( stp ); 253 253 254 stp = alloc _align_set( Alignment, (Struct){ 42, 42.5 }); // CFA memalign, fill254 stp = alloc( Alignment`align, (Struct){ 42, 42.5 }`fill ); // CFA memalign, fill 255 255 assert( (uintptr_t)stp % Alignment == 0 ); 256 256 printf( "CFA alloc_align fill %d %g\n", stp->x, stp->y ); 257 257 // do not free 258 258 259 stp = &(*alloc _align( stp, 4096)){ 42, 42.5 }; // CFA realign259 stp = &(*alloc( stp`realloc, 4096`align )){ 42, 42.5 }; // CFA realign 260 260 assert( (uintptr_t)stp % 4096 == 0 ); 261 261 printf( "CFA alloc_align %d %g\n", stp->x, stp->y ); … … 266 266 printf( "\n" ); 267 267 268 stp = alloc _align( Alignment, dim); // CFA array memalign268 stp = alloc( dim, Alignment`align ); // CFA array memalign 269 269 assert( (uintptr_t)stp % Alignment == 0 ); 270 270 for ( i; dim ) { stp[i] = (Struct){ 42, 42.5 }; } … … 274 274 free( stp ); 275 275 276 stp = alloc _align_set( Alignment, dim,fill ); // CFA array memalign, fill276 stp = alloc( dim, Alignment`align, fill`fill ); // CFA array memalign, fill 277 277 assert( (uintptr_t)stp % Alignment == 0 ); 278 278 printf( "CFA array alloc_align, fill\n" ); … … 281 281 free( stp ); 282 282 283 stp = alloc _align_set( Alignment, dim, (Struct){ 42, 42.5 }); // CFA array memalign, fill283 stp = alloc( dim, Alignment`align, ((Struct){ 42, 42.5 })`fill ); // CFA array memalign, fill 284 284 assert( (uintptr_t)stp % Alignment == 0 ); 285 285 printf( "CFA array alloc_align, fill\n" ); … … 288 288 // do not free 289 289 290 stp1 = alloc _align_set( Alignment, dim, stp, dim); // CFA array memalign, fill290 stp1 = alloc( dim, Alignment`align, [stp, dim]`fill ); // CFA array memalign, fill 291 291 assert( (uintptr_t)stp % Alignment == 0 ); 292 292 printf( "CFA array alloc_align, fill array\n" ); … … 295 295 free( stp1 ); 296 296 297 stp = alloc _align( stp, 4096, dim); // CFA aligned realloc array297 stp = alloc( dim, stp`realloc, 4096`align ); // CFA aligned realloc array 298 298 assert( (uintptr_t)stp % 4096 == 0 ); 299 299 for ( i; dim ) { stp[i] = (Struct){ 42, 42.5 }; } … … 325 325 for ( i; dim ) { printf( "%#x %a, ", sta1[i].x, sta1[i].y ); } 326 326 printf( "\n" ); 327 328 327 329 328 // new, non-array types -
tests/concurrent/examples/boundedBufferEXT.cfa
r56c44dc rce55a81 1 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2018 University of Waterloo 3 // 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. … … 87 87 } 88 88 89 enum { Prods = 4, Cons = 5 }; 90 Producer * prods[Prods]; 91 Consumer * cons[Cons]; 92 89 93 int main() { 90 94 Buffer(int) buffer; 91 enum { Prods = 4, Cons = 5 };92 Producer * prods[Prods];93 Consumer * cons[Cons];94 95 int sums[Cons]; 95 96 int i; -
tests/errors/.expect/completeType.x64.txt
r56c44dc rce55a81 6 6 Name: x 7 7 8 ... to: nothing 9 with resolved type: 10 void Alternatives are: 8 ... to: nothing Alternatives are: 11 9 Cost ( 0, 1, 2, 0, 1, -1, 0 ): Generated Cast of: 12 10 Application of … … 22 20 23 21 24 with resolved type:25 pointer to forall26 _90_4_DT: data type27 function28 ... with parameters29 intrinsic pointer to instance of type _90_4_DT (not function type)30 ... returning31 _retval__operator_deref: reference to instance of type _90_4_DT (not function type)32 ... with attributes:33 Attribute with name: unused34 35 36 22 ... to arguments 37 23 Variable Expression: x: pointer to instance of struct A with body 0 38 with resolved type:39 pointer to instance of struct A with body 040 24 41 with resolved type:42 reference to instance of struct A with body 043 25 ... to: nothing 44 with resolved type:45 void46 26 (types: 47 27 void … … 63 43 64 44 65 with resolved type:66 pointer to forall67 _90_4_DT: data type68 function69 ... with parameters70 intrinsic pointer to instance of type _90_4_DT (not function type)71 ... returning72 _retval__operator_deref: reference to instance of type _90_4_DT (not function type)73 ... with attributes:74 Attribute with name: unused75 76 77 45 ... to arguments 78 46 Variable Expression: x: pointer to instance of struct B with body 1 79 with resolved type:80 pointer to instance of struct B with body 181 47 82 with resolved type:83 reference to instance of struct B with body 184 48 ... to: nothing 85 with resolved type:86 void87 49 (types: 88 50 void … … 159 121 ... returning nothing 160 122 161 with resolved type:162 pointer to forall163 _109_0_T: sized data type164 ... with assertions165 ?=?: pointer to function166 ... with parameters167 reference to instance of type _109_0_T (not function type)168 instance of type _109_0_T (not function type)169 ... returning170 _retval__operator_assign: instance of type _109_0_T (not function type)171 ... with attributes:172 Attribute with name: unused173 174 175 ?{}: pointer to function176 ... with parameters177 reference to instance of type _109_0_T (not function type)178 ... returning nothing179 180 ?{}: pointer to function181 ... with parameters182 reference to instance of type _109_0_T (not function type)183 instance of type _109_0_T (not function type)184 ... returning nothing185 186 ^?{}: pointer to function187 ... with parameters188 reference to instance of type _109_0_T (not function type)189 ... returning nothing190 191 192 function193 ... with parameters194 pointer to instance of type _109_0_T (not function type)195 ... returning nothing196 197 123 ... to arguments 198 124 Variable Expression: z: pointer to instance of type T (not function type) 199 with resolved type:200 pointer to instance of type T (not function type)201 125 202 with resolved type:203 void204 126 (types: 205 127 void -
tests/errors/.expect/completeType.x86.txt
r56c44dc rce55a81 6 6 Name: x 7 7 8 ... to: nothing 9 with resolved type: 10 void Alternatives are: 8 ... to: nothing Alternatives are: 11 9 Cost ( 0, 1, 2, 0, 1, -1, 0 ): Generated Cast of: 12 10 Application of … … 22 20 23 21 24 with resolved type:25 pointer to forall26 _89_4_DT: data type27 function28 ... with parameters29 intrinsic pointer to instance of type _89_4_DT (not function type)30 ... returning31 _retval__operator_deref: reference to instance of type _89_4_DT (not function type)32 ... with attributes:33 Attribute with name: unused34 35 36 22 ... to arguments 37 23 Variable Expression: x: pointer to instance of struct A with body 0 38 with resolved type:39 pointer to instance of struct A with body 040 24 41 with resolved type:42 reference to instance of struct A with body 043 25 ... to: nothing 44 with resolved type:45 void46 26 (types: 47 27 void … … 63 43 64 44 65 with resolved type:66 pointer to forall67 _89_4_DT: data type68 function69 ... with parameters70 intrinsic pointer to instance of type _89_4_DT (not function type)71 ... returning72 _retval__operator_deref: reference to instance of type _89_4_DT (not function type)73 ... with attributes:74 Attribute with name: unused75 76 77 45 ... to arguments 78 46 Variable Expression: x: pointer to instance of struct B with body 1 79 with resolved type:80 pointer to instance of struct B with body 181 47 82 with resolved type:83 reference to instance of struct B with body 184 48 ... to: nothing 85 with resolved type:86 void87 49 (types: 88 50 void … … 159 121 ... returning nothing 160 122 161 with resolved type:162 pointer to forall163 _108_0_T: sized data type164 ... with assertions165 ?=?: pointer to function166 ... with parameters167 reference to instance of type _108_0_T (not function type)168 instance of type _108_0_T (not function type)169 ... returning170 _retval__operator_assign: instance of type _108_0_T (not function type)171 ... with attributes:172 Attribute with name: unused173 174 175 ?{}: pointer to function176 ... with parameters177 reference to instance of type _108_0_T (not function type)178 ... returning nothing179 180 ?{}: pointer to function181 ... with parameters182 reference to instance of type _108_0_T (not function type)183 instance of type _108_0_T (not function type)184 ... returning nothing185 186 ^?{}: pointer to function187 ... with parameters188 reference to instance of type _108_0_T (not function type)189 ... returning nothing190 191 192 function193 ... with parameters194 pointer to instance of type _108_0_T (not function type)195 ... returning nothing196 197 123 ... to arguments 198 124 Variable Expression: z: pointer to instance of type T (not function type) 199 with resolved type:200 pointer to instance of type T (not function type)201 125 202 with resolved type:203 void204 126 (types: 205 127 void -
tests/literals.cfa
r56c44dc rce55a81 10 10 // Created On : Sat Sep 9 16:34:38 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 20 13:51:12202013 // Update Count : 22 512 // Last Modified On : Sat Aug 29 10:57:56 2020 13 // Update Count : 226 14 14 // 15 15 … … 151 151 -0X0123456789.0123456789P-09; -0X0123456789.0123456789P-09f; -0X0123456789.0123456789P-09l; -0X0123456789.0123456789P-09F; -0X0123456789.0123456789P-09L; 152 152 153 #if defined( __i386 ) || defined( __x86_64 ) 153 154 #if defined(__GNUC__) && __GNUC_PREREQ(7,0) // gcc version >= 7 154 155 // floating with length, gcc f16/f128x unsupported and no prelude code for any _FloatXXx, so they work by conversion to long double … … 194 195 /* -0x123456789.0123456789P-09F16; */ -0x123456789.0123456789P-09F32; -0x123456789.0123456789P-09F32x; -0x123456789.0123456789P-09F64; -0x123456789.0123456789P-09F64x; -0x123456789.0123456789P-09W; -0x123456789.0123456789P-09F128; -0x123456789.0123456789P-09q; /* -0x123456789.0123456789P-09q; */ 195 196 #endif // __GNUC_PREREQ(7,0) 197 #endif // __i386 ) || __x86_64 196 198 197 199 #ifdef __CFA__ -
tests/pybin/tools.py
r56c44dc rce55a81 238 238 # helper function to check if a files contains only a specific string 239 239 def file_contains_only(file, text) : 240 with open(file ) as f:240 with open(file, encoding="latin-1") as f: # use latin-1 so all chars mean something. 241 241 ff = f.read().strip() 242 242 result = ff == text.strip() -
tests/raii/.expect/ctor-autogen-ERR1.txt
r56c44dc rce55a81 7 7 x: signed int 8 8 ... returning nothing 9 10 with resolved type:11 function12 ... with parameters13 _dst: reference to instance of struct Managed with body 114 x: signed int15 ... returning nothing16 9 17 10 ... deleted by: ?{}: function … … 33 26 34 27 35 with resolved type:36 pointer to function37 ... with parameters38 intrinsic reference to signed int39 intrinsic signed int40 ... returning41 _retval__operator_assign: signed int42 ... with attributes:43 Attribute with name: unused44 45 46 28 ... to arguments 47 29 Generated Cast of: … … 51 33 Generated Cast of: 52 34 Variable Expression: m: reference to instance of struct Managed with body 1 53 with resolved type:54 reference to instance of struct Managed with body 155 35 ... to: 56 36 instance of struct Managed with body 1 57 with resolved type:58 instance of struct Managed with body 159 with resolved type:60 signed int61 37 ... to: 62 reference to signed int63 with resolved type:64 38 reference to signed int 65 39 Generated Cast of: 66 40 constant expression (0 0: zero_t) 67 with resolved type:68 zero_t69 41 ... to: 70 42 signed int 71 with resolved type:72 signed int73 43 74 with resolved type:75 signed int76 44 ... with environment: 77 45 Types: … … 82 50 Generated Cast of: 83 51 Variable Expression: x: instance of struct Managed with body 1 84 with resolved type:85 instance of struct Managed with body 186 52 ... to: 87 53 reference to instance of struct Managed with body 1 88 with resolved type:89 reference to instance of struct Managed with body 190 54 constant expression (123 123: signed int) 91 with resolved type:92 signed int93 55 94 with resolved type:95 void96 56 ... to: nothing 97 with resolved type:98 void -
tests/test.py
r56c44dc rce55a81 116 116 parser.add_argument('--arch', help='Test for specific architecture', type=comma_separated(str), default=None) 117 117 parser.add_argument('--continue', help='When multiple specifications are passed (debug/install/arch), sets whether or not to continue if the last specification failed', type=yes_no, default='yes', dest='continue_') 118 parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default= 60)118 parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=120) 119 119 parser.add_argument('--global-timeout', help='Maximum cumulative duration in seconds after the ALL tests are considered to have timed out', type=int, default=7200) 120 120 parser.add_argument('--timeout-with-gdb', help='Instead of killing the command when it times out, orphan it and print process id to allow gdb to attach', type=yes_no, default="no") … … 194 194 if success(retcode): 195 195 if settings.generating : 196 # if we are o unly generating the output we still need to check that the test actually exists196 # if we are only generating the output we still need to check that the test actually exists 197 197 if no_rule(out_file, test.target()) : 198 198 retcode = 1 -
tests/warnings/.expect/self-assignment.txt
r56c44dc rce55a81 1 1 warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of: 2 2 Variable Expression: j: signed int 3 with resolved type:4 signed int5 3 ... to: 6 reference to signed int7 with resolved type:8 4 reference to signed int 9 5 warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of: 10 6 Variable Expression: s: instance of struct S with body 1 11 with resolved type:12 instance of struct S with body 113 7 ... to: 14 reference to instance of struct S with body 115 with resolved type:16 8 reference to instance of struct S with body 1 17 9 warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of: … … 20 12 ... from aggregate: 21 13 Variable Expression: s: instance of struct S with body 1 22 with resolved type:23 instance of struct S with body 124 with resolved type:25 signed int26 14 ... to: 27 reference to signed int28 with resolved type:29 15 reference to signed int 30 16 warnings/self-assignment.cfa:32:1 warning: self assignment of expression: Generated Cast of: … … 36 22 ... from aggregate: 37 23 Variable Expression: t: instance of struct T with body 1 38 with resolved type:39 instance of struct T with body 140 with resolved type:41 instance of struct S with body 142 with resolved type:43 signed int44 24 ... to: 45 25 reference to signed int 46 with resolved type:47 reference to signed int
Note:
See TracChangeset
for help on using the changeset viewer.