packages feed

hs-bindgen-1.0.0.0: test-artefacts/headers/golden/macros/reparse/end_in_macro_arg.h

/*
 * Declarations ending in a macro argument
 *
 * The expansion location of the last token of each declaration is the start of
 * the macro invocation; reparsing has to tokenise up to its end.
 */

#define T int
#define U int
#define PARAMS(args) args
#define ID(x) x

T f PARAMS((T a));

typedef T A ID([3]);

struct S { T x ID([3]); };

/* The only use of U is in the argument */
int g PARAMS((U a));

/* Ends right before an invocation, not in it */
T arr[3]ID(;)