- Timestamp:
- Jan 29, 2025, 11:41:32 AM (2 months ago)
- Branches:
- master
- Children:
- 161b98e
- Parents:
- 49510db
- Location:
- tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/Makefile.am ¶
r49510db ra22e8b4 93 93 concurrency/waituntil/repeat_close \ 94 94 concurrency/waituntil/timeout \ 95 designations \96 95 exceptions/cardgame \ 97 96 exceptions/defaults \ 98 97 exceptions/defaults-threads \ 99 98 exceptions/try-leave-catch \ 100 forall \101 function-operator \102 gmp \103 identParamDeclarator \104 99 include/includes \ 105 100 include/stdincludes \ -
TabularUnified tests/forall.cfa ¶
r49510db ra22e8b4 40 40 forall( T, U ) void f( T, U ) { sout | "fTU"; } 41 41 42 int x ;43 float y ;44 int * z ;45 float * w ;42 int x = 0; 43 float y = 0; 44 int * z = 0; 45 float * w = 0; 46 46 47 47 f( x, x ); … … 132 132 typedef int TD2; 133 133 struct S2 {}; 134 X RT2( T, X ) { 135 int TD2; 134 X RT2( T, X x ) { 135 int TD2; (void)TD2; 136 return x; 136 137 } 137 138 } … … 146 147 typedef int TD3; 147 148 } 148 st atic {149 struct S5 {};149 struct S5 {}; 150 inline { 150 151 void RT5( T ) { 151 152 struct S6 {}; 152 int TD2; 153 int TD2; (void)TD2; 153 154 } 154 155 } … … 168 169 static inline { 169 170 forall( T ) { 170 int RT6( T p );171 int RT6( T ) { return 0; } 171 172 } 172 173 forall( T, U ) { 173 int RT7( T, U ) ;174 } 175 } 176 staticforall( T ) {177 int RT8( T ) ;178 } 179 forall( T ) inline static{174 int RT7( T, U ) { return 0; } 175 } 176 } 177 inline forall( T ) { 178 int RT8( T ) { return 0; } 179 } 180 forall( T ) inline { 180 181 int RT9( T ) { T t; return 3; } 181 182 } … … 226 227 &tr += 1; 227 228 tp += 1; 228 T & tx = tp[1]; 229 T & tx = tp[1]; (void)tx; 229 230 230 231 T t; … … 239 240 &tr += 1; 240 241 tp += 1; 241 T & tx = tp[1]; 242 T & tx = tp[1]; (void)tx; 242 243 } 243 244 244 245 forall( T & ) void check_dtype() { 245 T & tr = *0p; 246 T * tp = 0p; 246 T & tr = *0p; (void)tr; 247 T * tp = 0p; (void)tp; 247 248 } 248 249 -
TabularUnified tests/function-operator.cfa ¶
r49510db ra22e8b4 29 29 trait Destructable { void ^?{}(T &); }; 30 30 31 trait Iterator(iter & | sized(iter) | Copyable(iter) | Destructable(iter), T) { 31 forall(iter & | sized(iter) | Copyable(iter) | Destructable(iter), T) 32 trait Iterator { 32 33 T & *?(iter); 33 34 iter ++?(iter &); … … 67 68 forall(Generator, GenRet | { GenRet ?()(Generator &); }, Iter &, T | Iterator(Iter, T) | Assignable(T, GenRet)) 68 69 void generate(Iter first, Iter last, Generator & gen) { 69 int i = 0;70 70 while (first != last) { 71 71 *first = gen(); -
TabularUnified tests/identParamDeclarator.cfa ¶
r49510db ra22e8b4 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // identParamDeclarator.cfa -- 8 // 6 // 7 // identParamDeclarator.cfa -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Aug 17 08:37:56 2016 … … 12 12 // Last Modified On : Fri Sep 25 14:31:08 2020 13 13 // Update Count : 4 14 // 14 // 15 16 // We have some useless const qualifiers for parsing testing. 17 #pragma GCC diagnostic ignored "-Wignored-qualifiers" 15 18 16 19 int fred ( … … 157 160 ); 158 161 159 int main( int argc, char const *argv[] ) { // dummy main162 int main() { 160 163 printf( "done\n" ); // non-empty .expect file 161 164 }
Note: See TracChangeset
for help on using the changeset viewer.