xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/Inputs/array-bounds-system-header.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // "System header" for testing that -Warray-bounds is properly suppressed in
2 // certain cases.
3 
4 #define BAD_MACRO_1 \
5     int i[3]; \
6     i[3] = 5
7 #define BAD_MACRO_2(_b, _i) \
8     (_b)[(_i)] = 5
9 #define QUESTIONABLE_MACRO(_a) \
10     sizeof(_a) > 3 ? (_a)[3] = 5 : 5
11 #define NOP(x) (x)
12