mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 12:03:41 +00:00
12 lines
202 B
C++
12 lines
202 B
C++
|
int main() {
|
||
|
int rc;
|
||
|
FILE *f;
|
||
|
f = fopen("/dev/null", "w");
|
||
|
fprintf(f, "hello world\n");
|
||
|
fclose(f);
|
||
|
rc = system("exit 42");
|
||
|
CHECK_NE(-1, rc);
|
||
|
CHECK_EQ(42, WEXITSTATUS(rc));
|
||
|
return 0;
|
||
|
}
|