Changeset 9e72bae3 for tests/array-collections
- Timestamp:
- Jan 23, 2025, 2:42:49 PM (8 months ago)
- Branches:
- master
- Children:
- f070ea8
- Parents:
- a750c71b (diff), 857b5f9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/array-collections/boxed.bookend.cfa
ra750c71b r9e72bae3 27 27 static char * bookend_hi = 0p; 28 28 29 // bookend pointers are set to stack addresses and compared (but not dereferenced) 30 // after their functions exit; they are "dangling" 31 #pragma GCC diagnostic push 32 #pragma GCC diagnostic ignored "-Wpragmas" // -Wdangling-pointer unrecognized until GCC 12 33 #pragma GCC diagnostic ignored "-Wdangling-pointer" 34 29 35 void bookendInner( void ) { 30 36 char var = 'x'; … … 35 41 #define TC(...) 36 42 #define TR( TRID, SZS, SZV, ETG, ACCS, SPS, OVLD ) \ 37 F_SIG( bookendOuter, TRID, SZS, SZV, ACCS, SPS, OVLD ) { 43 F_SIG( bookendOuter, TRID, SZS, SZV, ACCS, SPS, OVLD ) { \ 38 44 char var = 'x'; \ 39 45 (void) var; \ 40 46 bookend_hi = & var; \ 41 return CALL( allocAndAccess, TRID, SZS, n, expectedElmSz, tcid, vart ); \47 return CALL( allocAndAccess, TRID, SZS, n, expectedElmSz, tcid, vart ); \ 42 48 } 43 49 #include "boxed.cases.hfa" 44 50 #undef TC 45 51 #undef TR 52 53 #pragma GCC diagnostic pop 46 54 47 55 void resetBookends( void ) {
Note:
See TracChangeset
for help on using the changeset viewer.