Changeset a22e8b4 for tests/forall.cfa
- Timestamp:
- Jan 29, 2025, 11:41:32 AM (12 months ago)
- Branches:
- master
- Children:
- 161b98e
- Parents:
- 49510db
- File:
-
- 1 edited
-
tests/forall.cfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.