- Timestamp:
- Nov 12, 2020, 11:04:23 PM (2 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 726b748
- Parents:
- 10d609a (diff), 57ccff1 (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:
-
- 13 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/generator/suspend_then.cfa
r10d609a r9139540 40 40 Fibonacci f1, f2; 41 41 for ( 10 ) { // print N Fibonacci values 42 sout | next( f1 ) | next( f2 ); 42 int v1 = next( f1 ); 43 int v2 = next( f2 ); 44 sout | v1 | v2; 43 45 } // for 44 46 } -
tests/pybin/tools.py
r10d609a r9139540 73 73 ) 74 74 75 return proc.returncode, out.decode(" utf-8") if out else None75 return proc.returncode, out.decode("latin-1") if out else None 76 76 except subprocess.TimeoutExpired: 77 77 if settings.timeout2gdb: -
tests/references.cfa
r10d609a r9139540 124 124 int *p = &a; 125 125 asm ( 126 "incl %[p]\n\t" 127 : [p] "+m" (*p) 126 #if defined( __i386 ) || defined( __x86_64 ) 127 "incl %[p]\n\t" 128 : [p] "+m" (*p) 129 #elif defined( __aarch64__ ) 130 "ldr w1, %[p]\n\t" 131 "add w1, w1, 1\n\t" 132 "str w1, %[p]\n\t" 133 : [p] "+m" (*p) ::"w1" 134 #endif 128 135 ); 129 136 printf("%d\n", a); -
tests/test.py
r10d609a r9139540 99 99 100 100 # print a warning if it users didn't ask for a specific architecture 101 if not options.arch: 101 found_arch = [f.arch for f in found if f.arch] 102 if found_arch and not options.arch: 102 103 print('WARNING: "%s", test has architecture specific expected files but --arch was not specified, regenerating only for current host' % testname, file=sys.stderr) 103 104 104 105 105 106 # print a warning if it users didn't ask for a specific ast version 106 if not options.ast: 107 found_astv = [f.astv for f in found if f.astv] 108 if found_astv and not options.ast: 107 109 print('WARNING: "%s", test has ast version specific expected files but --ast was not specified, regenerating only for current ast' % testname, file=sys.stderr) 108 110 -
tests/tuple/tupleAssign.cfa
r10d609a r9139540 44 44 double d = 0.0; 45 45 int i = 0; 46 char c = '\0';46 signed char c = '\0'; 47 47 struct X { 48 48 int z; … … 55 55 [t, x, d, i, c, x] = (double)94.12; 56 56 printf( "d=%lg i=%d c=%c t=[%d, %lg, %d]\n", d, i, (int)c, t ); 57 sout | "d=" | d | "i=" | i | "c=" | c | ' ' | "t=[" | t | "]";57 sout | "d=" | d | "i=" | i | "c=" | (char)c | ' ' | "t=[" | t | "]"; 58 58 [x, c, i, d, x, t] = (double)-94.12; 59 59 printf( "d=%lg i=%d c=%c t=[%d, %lg, %d]\n", d, i, c, t ); 60 sout | "d=" | d | "i=" | i | "c=" | c | ' ' | "t=[" | t | "]";60 sout | "d=" | d | "i=" | i | "c=" | (char)c | ' ' | "t=[" | t | "]"; 61 61 } 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.