cmake HAVE_FORMAT_ATTRIBUTE examples

JulNadeauCA/libagar CMakeChecks.cmake :621

check_c_source_compiles("
#include <stdarg.h>
void foo1(char *, ...)
     __attribute__((__format__ (printf, 1, 2)));
void foo2(char *, ...)
     __attribute__((__format__ (__printf__, 1, 2)));
void foo1(char *a, ...) {}
void foo2(char *a, ...) {}
int main(int argc, char *argv[])
{
	foo1(\"foo %s\", \"bar\");
	foo2(\"foo %d\", 1);
	return (0);
}
" HAVE_FORMAT_ATTRIBUTE)