The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
345 B

#include <stdio.h>
int __attribute__((weak)) get_checked(void) {
return -1;
}
#define CHECK_VALUE (100)
#define TEST_SUCCESS (0)
#define TEST_FAILURE (-1)
int main(void) {
if (get_checked() == CHECK_VALUE) {
fprintf(stdout,"good\n");
return TEST_SUCCESS;
}
fprintf(stdout,"bad\n");
return TEST_FAILURE;
}