libdpf/thirdparty/hedley/test/concat.c
Ryan Henry e4e666f459 Initial import of libdpf.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 14:08:32 -06:00

22 lines
357 B
C

#include "../hedley.h"
#define FOO a
#define BAR b
#if HEDLEY_IAR_VERSION_CHECK(8,5,0)
# pragma diag_suppress=Pe1818
#endif
static int ab(int v) {
return v * v;
}
static int a_b(int v) {
return HEDLEY_CONCAT(FOO, b)(v) * v;
}
int main(int argc, const char** argv) {
HEDLEY_STATIC_CAST(void, argv);
return HEDLEY_CONCAT3(FOO, _, BAR)(argc);
}