Skip to content

Commit addf680

Browse files
committed
Use a single codegen unit to reduce non-determinism in srcloc.rs test
When building with multiple codegen units the test case can fail with only a subset of all errors. Use a single codegen unit as a workaround.
1 parent 61edfd5 commit addf680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/asm/srcloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// no-system-llvm
22
// only-x86_64
33
// build-fail
4-
4+
// compile-flags: -Ccodegen-units=1
55
#![feature(asm)]
66

77
// Checks that inline asm errors are mapped to the correct line in the source code.

0 commit comments

Comments
 (0)