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