Files
rk35xx-android14/external/clang/test/CoverageMapping/Inputs/macros.h
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

14 lines
529 B
C

// Assorted macros to help test #include behavior across file boundaries.
#define helper1 0
void helper2(const char *, ...);
#define M1(a, ...) helper2(a, ##__VA_ARGS__);
// Note: M2 stresses vararg macro functions with macro arguments. The spelling
// locations of the args used to be set to the expansion site, leading to
// crashes (region LineEnd < LineStart). The regression test requires M2's line
// number to be greater than the line number containing the expansion.
#define M2(a, ...) M1(a, helper1, ##__VA_ARGS__);