Retro68/binutils/ld/testsuite/ld-plugin/pr12760b.c

8 lines
182 B
C

#define linker_warning(x, msg) \
static const char __warn_##x[] \
__attribute__((used, section(".gnu.warning." #x))) \
= msg
void bar (void) {}
linker_warning(bar, "Bad bar");