test-cases: fix race with zig run on C backend tests

Also avoid redundantly doing compile-error checks on multiple targets
for test cases where that is not helpful.
This commit is contained in:
Andrew Kelley
2022-06-14 15:27:43 -07:00
parent 22690efcc2
commit 8caa206417
6 changed files with 15 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ pub export fn entry() void {
}
// error
// backend=stage2,llvm
// target=native
// backend=stage2
//
// :4:1: error: expected type, found fn() type