clang/test/SemaCXX/warn-unsafe-buffer-usage-pragma.h
raw| 1 | #ifdef _INCLUDE_NO_WARN |
| 2 | // the snippet will be included in an opt-out region |
| 3 | p1++; |
| 4 | |
| 5 | #undef _INCLUDE_NO_WARN |
| 6 | |
| 7 | #elif defined(_INCLUDE_WARN) |
| 8 | // the snippet will be included in a location where warnings are expected |
| 9 | p2++; // expected-note{{used in pointer arithmetic here}} |
| 10 | #undef _INCLUDE_WARN |
| 11 | |
| 12 | #else |
| 13 | |
| 14 | #endif |