The following program does not compile:
// chibicc
void function(void) {
// this function is here just to show that the problem is not on line 1
}
#if defined(__has_include) && __has_include(<valgrind/valgrind.h>)
#include <valgrind/valgrind.h>
#endif
#include "stdio.h"
int main(void) {
printf("This program should compile.\n");
return 0;
}
The error message is:
main.c:1: 0
^ not a function
Also note that the error message says line 1, independent of where the valgrind macro directive is.
The following program does not compile:
The error message is:
Also note that the error message says line 1, independent of where the valgrind macro directive is.