Changeset 829821c for tests/array-collections
- Timestamp:
- Jan 22, 2025, 1:15:59 PM (3 months ago)
- Branches:
- master
- Children:
- 1cc5c6a, 857b5f9
- Parents:
- a9e327a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/array-collections/boxed.bookend.cfa ¶
ra9e327a r829821c 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.