- Timestamp:
- Sep 5, 2017, 3:41:04 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 416cc86
- Parents:
- 800d275 (diff), 3f8dd01 (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:
- src/tests
- Files:
-
- 3 added
- 9 edited
-
.expect/64/gmp.txt (modified) (1 diff)
-
.expect/dtor-early-exit-ERR1.txt (modified) (1 diff)
-
.expect/dtor-early-exit-ERR2.txt (modified) (1 diff)
-
.expect/function-operator.txt (added)
-
.expect/ifcond.txt (modified) (1 diff)
-
div.c (modified) (2 diffs)
-
dtor-early-exit.c (modified) (2 diffs)
-
function-operator.c (added)
-
gmp.c (modified) (2 diffs)
-
ifcond.c (modified) (2 diffs)
-
stdincludes.c (modified) (2 diffs)
-
waitfor.c (added)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/.expect/64/gmp.txt
r800d275 r235b41f 5 5 y:97 6 6 y:12345678901234567890123456789 7 y:200 8 y:-400 9 y:24691357802469135780246913578 7 10 y:3 8 11 y:-3 -
src/tests/.expect/dtor-early-exit-ERR1.txt
r800d275 r235b41f 1 1 dtor-early-exit.c:142:1 error: jump to label 'L1' crosses initialization of y Branch (Goto) 2 with target: L1 3 with original target: L1 2 4 -
src/tests/.expect/dtor-early-exit-ERR2.txt
r800d275 r235b41f 1 1 dtor-early-exit.c:142:1 error: jump to label 'L2' crosses initialization of y Branch (Goto) 2 with target: L2 3 with original target: L2 2 4 -
src/tests/.expect/ifcond.txt
r800d275 r235b41f 1 1 x != 0 correct 2 x != 0 && y == 0 incorrect2 x != 0 && y != 0 correct 3 3 x == y correct -
src/tests/div.c
r800d275 r235b41f 1 // -*- Mode: C -*-2 1 // 3 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo … … 11 10 // Created On : Tue Aug 8 16:28:43 2017 12 11 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Wed Aug 9 17:09:40201714 // Update Count : 1 612 // Last Modified On : Wed Aug 30 07:56:28 2017 13 // Update Count : 17 15 14 // 16 15 -
src/tests/dtor-early-exit.c
r800d275 r235b41f 220 220 } 221 221 222 // TODO: implement __label__ and uncomment these lines 223 void computedGoto() { 224 // __label__ bar; 225 void *ptr; 226 ptr = &&foo; 227 goto *ptr; 228 assert(false); 229 foo: ; 230 // void f() { 231 // ptr = &&bar; 232 // goto *ptr; 233 // assert(false); 234 // } 235 // f(); 236 // assert(false); 237 // bar: ; 238 } 239 222 240 int main() { 223 241 sepDisable(sout); … … 229 247 sout | endl; 230 248 h(); 249 250 computedGoto(); 231 251 } 232 252 -
src/tests/gmp.c
r800d275 r235b41f 10 10 // Created On : Tue Apr 19 08:55:51 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 25 12:50:01201713 // Update Count : 5 4412 // Last Modified On : Mon Sep 4 09:51:18 2017 13 // Update Count : 550 14 14 // 15 15 … … 29 29 sout | "y:" | y | endl; 30 30 y = "12345678901234567890123456789"; 31 sout | "y:" | y | endl; 32 y = 100`mp + 100`mp; 33 sout | "y:" | y | endl; 34 y = -200u`mp + -200u`mp; 35 sout | "y:" | y | endl; 36 y = "12345678901234567890123456789"`mp + "12345678901234567890123456789"`mp; 31 37 sout | "y:" | y | endl; 32 38 y = si; -
src/tests/ifcond.c
r800d275 r235b41f 1 // -*- Mode: C -*- 2 // 1 // 3 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo 4 3 // 5 4 // The contents of this file are covered under the licence agreement in the 6 5 // file "LICENCE" distributed with Cforall. 7 // 8 // ifcond.c -- 9 // 6 // 7 // ifcond.c -- 8 // 10 9 // Author : Peter A. Buhr 11 10 // Created On : Sat Aug 26 10:13:11 2017 12 // Last Modified By : Peter A. Buhr13 // Last Modified On : Tue Aug 29 08:25:02201714 // Update Count : 1 215 // 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri Sep 01 15:22:19 2017 13 // Update Count : 14 14 // 16 15 17 #include <fstream>16 #include <fstream> 18 17 19 18 int f( int r ) { return r; } … … 28 27 } // if 29 28 30 if ( int x = 4, y = 0 ) { // FIXME && distribution 29 if ( int x = 4, y = 0 ) { 30 sout | "x != 0 && y != 0 incorrect" | endl; 31 } else if ( int x = 4, y = 1 ) { 31 32 sout | "x != 0 && y != 0 correct" | endl; 32 } else {33 sout | "x != 0 &&y == 0 incorrect" | endl;33 } else { 34 sout | "x == 0 || y == 0 incorrect" | endl; 34 35 } // if 35 36 -
src/tests/stdincludes.c
r800d275 r235b41f 1 // -*- Mode: C++ -*-2 1 // 3 2 // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo … … 11 10 // Created On : Tue Aug 29 08:26:14 2017 12 11 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Tue Aug 29 08:52:11201714 // Update Count : 412 // Last Modified On : Wed Aug 30 07:56:39 2017 13 // Update Count : 5 15 14 // 16 15
Note:
See TracChangeset
for help on using the changeset viewer.