- Timestamp:
- Jan 22, 2025, 1:15:59 PM (2 months ago)
- Branches:
- master
- Children:
- 1cc5c6a, 857b5f9
- Parents:
- a9e327a
- Location:
- tests
- Files:
-
- 2 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 ) { -
TabularUnified tests/malloc.cfa ¶
ra9e327a r829821c 64 64 free( ip ); 65 65 66 #pragma GCC diagnostic push 67 #pragma GCC diagnostic ignored "-Wpragmas" // -Walloc-size unrecognized until GCC 14 68 #pragma GCC diagnostic ignored "-Walloc-size" 66 69 ip = (int *)malloc( 0 ); 70 #pragma GCC diagnostic pop 67 71 test_base( ip, 0, libAlign ); 68 72 test_use( ip );
Note: See TracChangeset
for help on using the changeset viewer.