- Timestamp:
- Apr 26, 2019, 4:56:16 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 8d63649
- Parents:
- 3898392 (diff), bd405fa (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
- 3 edited
-
completeTypeError.cfa (modified) (3 diffs)
-
coroutine/cntparens.cfa (added)
-
coroutine/devicedriver.cfa (modified) (2 diffs)
-
io2.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/completeTypeError.cfa
r3898392 rcbef27b 5 5 forall(dtype T | sized(T)) void quux(T *); 6 6 7 struct A; // incomplete8 struct B {}; // complete7 struct A; // incomplete 8 struct B {}; // complete 9 9 10 10 int main() { 11 int * i;12 void * v;11 int * i; 12 void * v; 13 13 14 14 A * x; … … 32 32 // bad 33 33 *v; 34 *x; // ambiguous34 *x; // ambiguous 35 35 foo(v); 36 36 baz(v); … … 52 52 void qux(T * y) { 53 53 // okay 54 *y; 54 55 bar(y); 55 56 qux(y); 56 *y;57 57 58 58 // bad -
tests/coroutine/devicedriver.cfa
r3898392 rcbef27b 10 10 // Created On : Sat Mar 16 15:30:34 2019 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 19 15:59:06201913 // Update Count : 8712 // Last Modified On : Sat Apr 20 09:07:19 2019 13 // Update Count : 90 14 14 // 15 15 … … 67 67 char msg[65], byte; 68 68 Driver driver = { msg }; 69 70 sin | nlOn; // read newline (all) characters 69 71 eof: for () { // read until end of file 70 72 sin | byte; // read one character -
tests/io2.cfa
r3898392 rcbef27b 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Dec 21 08:20:14 201813 // Update Count : 11 212 // Last Modified On : Thu Apr 18 08:03:30 2019 13 // Update Count : 113 14 14 // 15 15 … … 97 97 sout | 1 | sepOff | 2 | 3; // locally turn off implicit separator 98 98 sout | sepOn | sepOn | 1 | 2 | 3 | sepOn | sepOff | sepOn | '\n' | nonl; // no separator at start/end of line 99 sout | 1 | 2 | 3 | "\n\n" | sepOn | nonl; // no separator at start of next line99 sout | 1 | 2 | 3 | "\n\n" | sepOn | nonl; // no separator at start of next line 100 100 sout | 1 | 2 | 3; 101 101 sout | nl;
Note:
See TracChangeset
for help on using the changeset viewer.