- Timestamp:
- Mar 27, 2019, 11:09:23 AM (5 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
- Children:
- a45fc7b
- Parents:
- 2b10f95 (diff), 1e5d0f0c (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:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/KRfunctions.x64.txt
r2b10f95 r86fb8f2 82 82 signed int _X1ai_2; 83 83 signed int _X1bi_2; 84 signed int *(*_tmp_cp_ret 2)(signed int _X1xi_1, signed int _X1yi_1);85 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret 2=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret2)));86 ((void)(_tmp_cp_ret 2) /* ^?{} */);84 signed int *(*_tmp_cp_ret4)(signed int _X1xi_1, signed int _X1yi_1); 85 ((void)(_X1xFPi_ii__2=(((void)(_tmp_cp_ret4=_X3f10FFPi_ii__iPiPid__1(3, (&_X1ai_2), (&_X1bi_2), 3.5))) , _tmp_cp_ret4))); 86 ((void)(_tmp_cp_ret4) /* ^?{} */); 87 87 const signed int _X2f1Fi_iPiPi__2(signed int _X1ai_2, signed int *_X1bPi_2, signed int *_X1cPi_2){ 88 88 __attribute__ ((unused)) const signed int _X10_retval_f1Ki_2; -
tests/.expect/completeTypeError.txt
r2b10f95 r86fb8f2 87 87 void 88 88 ) 89 Environment:( _ 74_0_T ) -> instance of type T (not function type) (no widening)89 Environment:( _99_0_T ) -> instance of type T (not function type) (no widening) 90 90 91 91 -
tests/.expect/declarationSpecifier.x64.txt
r2b10f95 r86fb8f2 698 698 signed int main(signed int _X4argci_1, char **_X4argvPPc_1, char **_X4envpPPc_1){ 699 699 __attribute__ ((unused)) signed int _X12_retval_maini_1; 700 signed int _tmp_cp_ret 2;701 ((void)(_X12_retval_maini_1=(((void)(_tmp_cp_ret 2=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret2)) /* ?{} */);702 ((void)(_tmp_cp_ret 2) /* ^?{} */);700 signed int _tmp_cp_ret4; 701 ((void)(_X12_retval_maini_1=(((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4)) /* ?{} */); 702 ((void)(_tmp_cp_ret4) /* ^?{} */); 703 703 return _X12_retval_maini_1; 704 704 } -
tests/.expect/extension.x64.txt
r2b10f95 r86fb8f2 186 186 __extension__ signed int _X1ci_2; 187 187 ((void)(__extension__ _X1ai_2=(__extension__ _X1bi_2+__extension__ _X1ci_2))); 188 signed int _tmp_cp_ret 2;189 ((void)(((void)(_tmp_cp_ret 2=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret2));190 ((void)(_tmp_cp_ret 2) /* ^?{} */);188 signed int _tmp_cp_ret4; 189 ((void)(((void)(_tmp_cp_ret4=__extension__ _X4fredFi_i__1(3))) , _tmp_cp_ret4)); 190 ((void)(_tmp_cp_ret4) /* ^?{} */); 191 191 __extension__ signed int _X4maryFi_i__2(signed int _X1pi_2){ 192 192 __attribute__ ((unused)) signed int _X12_retval_maryi_2; -
tests/.expect/gccExtensions.x64.txt
r2b10f95 r86fb8f2 171 171 signed int main(signed int _X4argci_1, char **_X4argvPPc_1, char **_X4envpPPc_1){ 172 172 __attribute__ ((unused)) signed int _X12_retval_maini_1; 173 signed int _tmp_cp_ret 2;174 ((void)(_X12_retval_maini_1=(((void)(_tmp_cp_ret 2=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret2)) /* ?{} */);175 ((void)(_tmp_cp_ret 2) /* ^?{} */);173 signed int _tmp_cp_ret4; 174 ((void)(_X12_retval_maini_1=(((void)(_tmp_cp_ret4=invoke_main(_X4argci_1, _X4argvPPc_1, _X4envpPPc_1))) , _tmp_cp_ret4)) /* ?{} */); 175 ((void)(_tmp_cp_ret4) /* ^?{} */); 176 176 return _X12_retval_maini_1; 177 177 } -
tests/.expect/math1.txt
r2b10f95 r86fb8f2 10 10 expm1:1.71828 1.71828182845905 1.71828182845904524 11 11 pow:1 1 1 0.273957+0.583701i 0.273957253830121+0.583700758758615i -0.638110484918098871+0.705394566961838155i 12 \ 16 256 13 \ 912673 256 64 -64 0.015625 -0.015625 18.3791736799526 0.264715-1.1922i 12 16 \ 2 = 256 13 912673 256 64 -64 0 0 14 0.015625 -0.015625 18.3791736799526 0.264715-1.1922i 15 0 0 18.3791736799526 0.264715-1.1922i 16 16 17 4 16 -
tests/coroutine/pingpong.cfa
r2b10f95 r86fb8f2 10 10 // Created On : Wed Sep 20 11:55:23 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 22 13:37:52201913 // Update Count : 3 012 // Last Modified On : Tue Mar 26 17:54:14 2019 13 // Update Count : 35 14 14 // 15 15 … … 20 20 const char * name; 21 21 /* const */ unsigned int N; 22 PingPong *part;22 PingPong & part; 23 23 }; 24 24 25 25 void ?{}( PingPong & this, const char * name, unsigned int N, PingPong & part ) { 26 (this.__cor){name}; 27 this.name = name; 28 this.N = N; 29 this.part = ∂ 26 this.[name, N] = [name, N]; &this.part = ∂ 30 27 } 31 28 void ?{}( PingPong & this, const char * name, unsigned int N ) { 32 this{ name, N, * (PingPong *)0 };29 this{ name, N, *0p }; // call first constructor 33 30 } 34 31 void cycle( PingPong & pingpong ) { … … 36 33 } 37 34 void partner( PingPong & this, PingPong & part ) { 38 this.part = ∂35 &this.part = ∂ 39 36 resume( this ); 40 37 } 41 void main( PingPong & pingpong ) {// ping's starter ::main, pong's starter ping42 for ( pingpong.N ) {// N ping-pongs43 sout | pingpong.name;44 cycle( *pingpong.part );38 void main( PingPong & pingpong ) with(pingpong) { // ping's starter ::main, pong's starter ping 39 for ( N ) { // N ping-pongs 40 sout | name; 41 cycle( part ); 45 42 } // for 46 43 } -
tests/math1.cfa
r2b10f95 r86fb8f2 10 10 // Created On : Fri Apr 22 14:59:21 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 12 16:28:49 201813 // Update Count : 8912 // Last Modified On : Mon Mar 25 22:56:47 2019 13 // Update Count : 109 14 14 // 15 15 … … 49 49 unsigned int e = 2; 50 50 b \= e; 51 sout | "\\" | b | b \ e; 52 sout | "\\" | 'a' \ 3u | 2 \ 8u | 4 \ 3u | -4 \ 3u | nonl; 51 sout | b | "\\" | e | "= " | b \ e; 52 sout | 'a' \ 3 | 2 \ 8 | 4 \ 3 | -4 \ 3 | 4 \ -3 | -4 \ -3; 53 sout | 4.0 \ -3 | -4.0 \ -3 | 4.0 \ 2.1 | (1.0f+2.0fi) \ (3.0f+2.0fi); 53 54 sout | 4 \ -3 | -4 \ -3 | 4.0 \ 2.1 | (1.0f+2.0fi) \ (3.0f+2.0fi); 55 56 struct S { int i; }; 57 double ?*?( double d, S s ) { return d * s.i; } 58 double ?/?( double d, S s ) { return d / s.i; } 59 S ?\?( S s, unsigned long y ) { return (S){ s.i \ y }; } 60 ofstream & ?|?( ofstream & os, S s ) { return os | s.i; } 61 void ?|?( ofstream & os, S s ) { (ofstream &)(os | s); nl( os ); } 62 S s = { 4 }; 63 S x = s \ 2; 64 sout | x; 65 sout | s.i | s \ 2u; 54 66 } // main 55 67 -
tests/rational.cfa
r2b10f95 r86fb8f2 10 10 // Created On : Mon Mar 28 08:43:12 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 19 08:30:28201913 // Update Count : 7312 // Last Modified On : Wed Mar 27 07:37:17 2019 13 // Update Count : 80 14 14 // 15 15 … … 54 54 sout | a * b; 55 55 sout | a / b; 56 // sout | a \ 2 | b \ 2; // FIX ME 57 // sout | a \ -2 | b \ -2; 56 58 57 59 sout | "conversion";
Note: See TracChangeset
for help on using the changeset viewer.