Changeset e6cfa8ff
- Timestamp:
- Mar 9, 2020, 11:06:19 AM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5b544a6
- Parents:
- 9306559f
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r9306559f re6cfa8ff 745 745 if(!decl_suspend) SemanticError( loc, "suspend keyword applied to coroutines requires coroutines to be in scope, add #include <coroutine.hfa>\n"); 746 746 auto expr = new UntypedExpr( VariableExpr::functionPointer( decl_suspend ) ); 747 expr->location = stmt->location;747 expr->location = loc; 748 748 749 749 // Change this statement into a regular expr 750 750 assert(expr); 751 751 auto nstmt = new ExprStmt( expr ); 752 nstmt->location = stmt->location;752 nstmt->location = loc; 753 753 return nstmt; 754 754 } -
tests/coroutine/.expect/fmtLines.txt
r9306559f re6cfa8ff 48 48 { // f or n ewli 49 49 ne c hara cter s su 50 spen d (); if ( fm51 t.ch != '\n' ) b reak52 ; / / ig nore new line53 } // for sout54 | f mt.c h; //55 prin t ch arac ter }56 // f or sou t | " "57 ; // prin t bl58 ock sepa rato r } //59 for sou t | nl;60 // p rint gro up s61 epar ator } / / fo r} /62 / ma invo id p rt( Form63 at & fmt , ch ar c h )64 { fmt .ch = ch ;65 res ume( fmt );} //66 prti nt m ain( ) { Form67 at f mt; char ch; for68 ( ; ; ) { s in | ch;69 // rea d on70 e ch arac ter if ( e71 of( sin ) ) brea k;72 // eof ? p rt(73 fmt, ch ); } // for}74 // main // L ocal Var75 iabl es: //// tab -wid76 th: 4 // // c ompi le-c77 omma nd: "cfa fmt Line78 s.cf a" / /// End: //50 spen d; i f ( fmt. 51 ch ! = '\ n' ) bre ak; 52 // igno re n ewli ne 53 } // f or so ut | 54 fmt .ch; / / pr 55 int char acte r } // 56 for s out | " "; 57 / / pr int bloc 58 k se para tor } / / fo 59 r s out | nl ; 60 // pri nt g roup sep 61 arat or } // for} // 62 main void prt ( Fo rmat 63 & f mt, char ch ) { 64 f mt.c h = ch; r 65 esum e( f mt ) ;} / / pr 66 tint mai n() { Fo rmat 67 fmt ; ch ar c h; f or ( 68 ;; ) { sin | c h; 69 // r ead one 70 char acte r if ( eof 71 ( si n ) ) br eak; 72 / / eo f ? prt ( fm 73 t, c h ); } / / fo r} / 74 / ma in// Loc al V aria 75 bles : // // t ab-w idth 76 : 4 //// com pile -com 77 mand : "c fa f mtLi nes. 78 cfa" /// / En d: / / -
tests/errors/.expect/completeType.txt
r9306559f re6cfa8ff 27 27 void 28 28 ) 29 Environment:( _8 3_4_DT ) -> instance of struct A with body 0 (no widening)29 Environment:( _85_4_DT ) -> instance of struct A with body 0 (no widening) 30 30 31 31 … … 50 50 void 51 51 ) 52 Environment:( _8 3_4_DT ) -> instance of struct B with body 1 (no widening)52 Environment:( _85_4_DT ) -> instance of struct B with body 1 (no widening) 53 53 54 54 … … 127 127 void 128 128 ) 129 Environment:( _10 2_0_T ) -> instance of type T (not function type) (no widening)129 Environment:( _104_0_T ) -> instance of type T (not function type) (no widening) 130 130 131 131 Could not satisfy assertion: 132 132 ?=?: pointer to function 133 133 ... with parameters 134 reference to instance of type _10 2_0_T (not function type)135 instance of type _10 2_0_T (not function type)134 reference to instance of type _104_0_T (not function type) 135 instance of type _104_0_T (not function type) 136 136 ... returning 137 _retval__operator_assign: instance of type _10 2_0_T (not function type)137 _retval__operator_assign: instance of type _104_0_T (not function type) 138 138 ... with attributes: 139 139 Attribute with name: unused
Note: See TracChangeset
for help on using the changeset viewer.