- File:
-
- 1 edited
-
tests/array-collections/dimexpr-match-cfa.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/array-collections/dimexpr-match-cfa.cfa
r2e63915 r0b8c951d 45 45 46 46 forall( [N] ) 47 void zip( array(float, N) & , array(float, N) &) {}47 void zip( array(float, N) & a, array(float, N) & b ) {} 48 48 49 49 DECLN_runTests { … … 52 52 int mut7 = 7, mut42 = 42; 53 53 54 // Many are only used in rejection cases, so they are unused in the non-ERRS compilation.55 (void) cpr7;56 (void) cpr42;57 (void) mut7;58 (void) mut42;59 60 54 #define TRY_COMPAT( LV, RV ) \ 61 55 { \ 62 void f( array(float, LV) * ) {}\56 void f( array(float, LV) * x ) {} \ 63 57 array(float, RV) a; \ 64 58 f( & a ); \ … … 71 65 array(float, RV) a; \ 72 66 array(float, LV) * b = & a; \ 73 (void) b; \74 67 } 75 68 ARRANGEMENT( PTRVAR_INIT ) … … 87 80 #define TRY_COMPAT( LV, RV ) \ 88 81 { \ 89 void f( array(float, LV) & ) {}\82 void f( array(float, LV) & x ) {} \ 90 83 array(float, RV) a; \ 91 84 f( a ); \ … … 98 91 array(float, RV) a; \ 99 92 array(float, LV) & b = a; \ 100 (void) b; \101 93 } 102 94 ARRANGEMENT( REFVAR_INIT )
Note:
See TracChangeset
for help on using the changeset viewer.