Skip to content

Commit a5b6dba

Browse files
committed
Fix tests/assembly/dwarf-mixed-versions-lto.rs test failure on riscv64
1 parent 2a5a001 commit a5b6dba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/assembly/dwarf-mixed-versions-lto.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This test ensures that if LTO occurs between crates with different DWARF versions, we
22
// will choose the highest DWARF version for the final binary. This matches Clang's behavior.
33
// Note: `.2byte` directive is used on MIPS.
4+
// Note: `.half` directive is used on RISC-V.
45

56
//@ only-linux
67
//@ aux-build:dwarf-mixed-versions-lto-aux.rs
@@ -15,6 +16,6 @@ fn main() {
1516
}
1617

1718
// CHECK: .section .debug_info
18-
// CHECK-NOT: {{\.(short|hword|2byte)}} 2
19-
// CHECK-NOT: {{\.(short|hword|2byte)}} 4
20-
// CHECK: {{\.(short|hword|2byte)}} 5
19+
// CHECK-NOT: {{\.(short|hword|2byte|half)}} 2
20+
// CHECK-NOT: {{\.(short|hword|2byte|half)}} 4
21+
// CHECK: {{\.(short|hword|2byte|half)}} 5

0 commit comments

Comments
 (0)