提交 71308c3b 编写于 作者: U Ulf Möller

*** empty log message ***

上级 720b590f
......@@ -65,10 +65,10 @@ print OUT "\n";
print "Checking compiler...\n";
if (open(TEST,">test.c")) {
print TEST "#include <stdio.h>\nmain(){printf(\"Hello world\n\");}\n";
print TEST "#include <stdio.h>\nmain(){printf(\"Hello world\\n\");}\n";
close(TEST);
system("$cc -o cctest test.c");
if (! `./cctest` =~ /Hello world/) {
if (`./cctest` !~ /Hello world/) {
print OUT "Compiler doesn't work.\n";
goto err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册