xref: /aosp_15_r20/bionic/tests/stdio_nofortify_test.cpp (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker 
2*8d67ca89SAndroid Build Coastguard Worker #ifdef _FORTIFY_SOURCE
3*8d67ca89SAndroid Build Coastguard Worker #undef _FORTIFY_SOURCE
4*8d67ca89SAndroid Build Coastguard Worker #endif
5*8d67ca89SAndroid Build Coastguard Worker 
6*8d67ca89SAndroid Build Coastguard Worker #define NOFORTIFY
7*8d67ca89SAndroid Build Coastguard Worker 
8*8d67ca89SAndroid Build Coastguard Worker #include "stdio_test.cpp"
9*8d67ca89SAndroid Build Coastguard Worker 
10*8d67ca89SAndroid Build Coastguard Worker #if defined(_FORTIFY_SOURCE)
11*8d67ca89SAndroid Build Coastguard Worker #error "_FORTIFY_SOURCE has been redefined, fix the code to remove this redefinition."
12*8d67ca89SAndroid Build Coastguard Worker #endif
13