blob: c1fdff95b4da43a4a2a8387b86413967d6ca43ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct test {
const char *name;
void (*run)(void);
};
#define TEST(name) \
static void name(void); \
\
const struct test test##name \
__attribute__ ((section ("test_section"))) = { \
#name, name \
}; \
\
static void name(void)
|