- Timestamp:
- Feb 27, 2025, 3:17:20 PM (8 months ago)
- Branches:
- master
- Children:
- 3483185
- Parents:
- 9506c70
- Location:
- tests/io
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
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 ); -
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 ); -
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 -
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 } -
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];
Note:
See TracChangeset
for help on using the changeset viewer.