aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/warn-unsafe-buffer-usage-pragma.h
blob: 1d5cb45d3b918b99d93bce0b282fbea4cab59761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifdef _INCLUDE_NO_WARN
// the snippet will be included in an opt-out region
p1++;

#undef _INCLUDE_NO_WARN

#elif defined(_INCLUDE_WARN)
// the snippet will be included in a location where warnings are expected
p2++; // expected-note{{used in pointer arithmetic here}}
#undef _INCLUDE_WARN

#else

#endif