- Timestamp:
- Feb 27, 2025, 3:17:20 PM (4 weeks ago)
- Branches:
- master
- Children:
- 3483185
- Parents:
- 9506c70
- Location:
- tests
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/Makefile.am ¶
r9506c70 rb8b64c34 72 72 concurrency/actors/poison \ 73 73 concurrency/actors/static \ 74 concurrency/actors/types 74 concurrency/actors/types \ 75 io/away_fair \ 76 io/comp_basic \ 77 io/comp_fair \ 78 io/many_read 75 79 76 80 # Tests that need investigation from the CFA team about why they require lax wflags. Goal is to eliminate this list. … … 79 83 include/includes \ 80 84 include/stdincludes \ 81 include/vector-collections \82 include/vector-fstream \83 include/vector-sequence \84 io/away_fair \85 io/comp_basic \86 io/comp_fair \87 io/manipulatorsInput \88 io/manipulatorsInput-uchunk \89 io/many_read \90 raii/ctor-autogen \91 raii/dtor-early-exit \92 raii/init_once \93 85 references \ 94 86 tuple/tupleCast \ -
TabularUnified tests/io/comp_basic.cfa ¶
r9506c70 rb8b64c34 75 75 // takes its sweet time so the Reader has to block 76 76 thread Writer {}; 77 void main(Writer & this) {77 void main(Writer &) { 78 78 for(TIMES) { 79 79 block( globals.bar ); -
TabularUnified tests/io/comp_fair.cfa ¶
r9506c70 rb8b64c34 95 95 // takes its sweet time so the Reader has to block 96 96 thread Writer {}; 97 void main(Writer & this) {97 void main(Writer &) { 98 98 for(TIMES) { 99 99 block( globals.bar ); -
TabularUnified tests/io/manipulatorsInput-uchunk.cfa ¶
r9506c70 rb8b64c34 117 117 } 118 118 119 #else 119 #else 120 120 #define xstr(s) str(s) 121 121 #define str(s) #s … … 180 180 181 181 // not used 182 static int true_main(const char * path, const char * env[]) { return 0; } 183 182 static int true_main(const char *, const char * []) { return 0; } 183 __attribute__((unused)) static void check_main(const char *); 184 __attribute__((unused)) static void print_status(int); 184 185 185 186 #endif -
TabularUnified tests/io/manipulatorsInput.cfa ¶
r9506c70 rb8b64c34 81 81 scanf( "%[^\n]\n", s ); printf( "16 %s\n", s ); // |get this line\n| 82 82 scanf( "%[^%%]%%\n", s ); printf( "17 %s\n", s ); // |@# this line 1)-{}%\n| 83 scanf( "%*[^%%]%%\n" , s );printf( "18 %s\n", s ); // |@# this line 1)-{}%\n|83 scanf( "%*[^%%]%%\n" ); printf( "18 %s\n", s ); // |@# this line 1)-{}%\n| 84 84 85 85 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // || … … 92 92 scanf( "X%[^Y]Y", s ); printf( "22 %s\n", s ); // |X ZC44%Y| 93 93 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 94 scanf( "X%*[^Y]Y" , s); printf( "23 %s\n", s ); // |X ZC44%Y|94 scanf( "X%*[^Y]Y" ); printf( "23 %s\n", s ); // |X ZC44%Y| 95 95 scanf( "\n" ); // must start next line // |\n| 96 96 … … 105 105 scanf( "X%cY", &ch ); printf( "27 %c\n", ch ); // |x| 106 106 scanf( "%*[ \f\n\r\t\v]" ); // ignore whitespace // |\n| 107 scanf( "X%*cY" , &ch );printf( "28 %c\n", ch ); // |x|107 scanf( "X%*cY" ); printf( "28 %c\n", ch ); // |x| 108 108 scanf( "\n" ); // must start next line // |\n| 109 109 } -
TabularUnified tests/io/many_read.cfa ¶
r9506c70 rb8b64c34 95 95 #endif 96 96 97 void main(reader & this) {97 void main(reader &) { 98 98 for(50) { 99 99 char data[size]; -
TabularUnified tests/raii/ctor-autogen.cfa ¶
r9506c70 rb8b64c34 1 1 // TODO: add error cases (e.g., use of field constructors for managed types, etc.) 2 2 3 enum Colo r { R, G, B };3 enum Colour { R, G, B }; 4 4 5 5 // empty struct/union should have generated ctor/dtors … … 21 21 // struct/union with members with generated ctor/dtors should themselves have generated ctor/dtors 22 22 union PopulatedUnion { 23 Colo r c;23 Colour c; 24 24 U u; 25 25 S s; … … 27 27 28 28 struct PopulatedStruct { 29 Colo r c;29 Colour c; 30 30 U u; 31 31 S s; … … 109 109 S s; 110 110 U u; 111 Colo r e;111 Colour e = R; 112 112 113 // identity(R); Colo r constant should be Color which is otype114 identity(e); // Colo r should be an otype113 // identity(R); Colour constant should be Colour which is otype 114 identity(e); // Colour should be an otype 115 115 identity(u); // U should be an otype 116 116 identity(s); // S should be an otype … … 139 139 identity(dsi); 140 140 identity(dsd); 141 // identity(dui); // xxx - codegen errors in generated thunk _temp3 (Box-pass-generated assignment return-temporary)142 //identity(dud);141 identity(dui); 142 identity(dud); 143 143 identity(dssi); 144 144 identity(dssf); -
TabularUnified tests/raii/dtor-early-exit.cfa ¶
r9506c70 rb8b64c34 23 23 }; 24 24 25 // don't want these called26 void ?{}(A & a) { assert( false ); }27 25 void ?{}(A & a, const char * name) { a.name = name; sout | "construct " | name; a.x = (int*)malloc(); } 28 void ?{}(A & a, const char * name, int * ptr) { assert( false ); } 26 // Don't want these called: 27 void ?{}(A &) { assert( false ); } 28 void ?{}(A &, const char *, int *) { assert( false ); } 29 29 30 30 A ?=?(A & a, A b) { sout | "assign " | a.name | " " | b.name; return a; } … … 110 110 if (j == 0) { 111 111 sout | "continue L2"; 112 continue ;// destruct y - missing because object that needs to be destructed is not a part of this block, it's a part of the for's block112 continue L2; // destruct y - missing because object that needs to be destructed is not a part of this block, it's a part of the for's block 113 113 } else if (j == 1) { 114 114 sout | "break L2"; 115 break ; // destruct y115 break L2; // destruct y 116 116 } else if (i == 1) { 117 117 sout | "continue L1"; … … 222 222 if(true) continue; 223 223 int t = 0; 224 (void)t; 224 225 } 225 226 } -
TabularUnified tests/raii/init_once.cfa ¶
r9506c70 rb8b64c34 75 75 } 76 76 77 void ?{}(init_once & x, init_once other) {77 void ?{}(init_once & x, init_once) { 78 78 x{}; // reuse default ctor 79 79 } … … 131 131 init_once x; 132 132 init_once y = x; 133 } // fall through 133 } 134 fallthrough; 134 135 default: { 135 136 init_once x;
Note: See TracChangeset
for help on using the changeset viewer.