mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
3ab76b2312
We now have an integration test that runs the amalgamated sources through a C++ compiler, to prevent the recurrence of such issues. Fixes #38 Thanks @gbbnfhb for the report!
11 lines
202 B
C++
11 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;
|
|
}
|