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.
13 lines
295 B
13 lines
295 B
6 years ago
|
#include <assert.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(int argc, char* argv[]) {
|
||
|
FILE *f = fopen(argv[1], "w");
|
||
|
const char msg[] = "int main(void) {return 0;}\n";
|
||
|
size_t w = fwrite(msg, 1, sizeof(msg) - 1, f);
|
||
|
assert(w == sizeof(msg) - 1);
|
||
|
int r = fclose(f);
|
||
|
assert(r == 0);
|
||
|
return 0;
|
||
|
}
|