On some platforms there was a 'defined but not used' warning.
When I fixed that I got a link error from clang. Using a
_LDFLAGS option causes automake to split building the test into
separate compile and link commands and clang was optimizing away
the unused static 'meh' symbol.
# Extra stuff for C tests
ansi_CFLAGS = $(AM_CFLAGS) -ansi
+bug290061_CFLAGS = -fPIC
bug290061_LDFLAGS = @FLAG_PIE@
bug491394_LDADD = -lc
bug491394_LDFLAGS = -nostdlib -static
static char meh[3000000]; // ~3mb
int main(void)
{
+ return meh[0];
}