Skip to content

Commit fdb636e

Browse files
committed
Add tests for windows-gnu split-debuginfo options
1 parent 76a030a commit fdb636e

17 files changed

+143
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//@ revisions: aarch64_gl i686_g i686_gl i686_uwp_g x86_64_g x86_64_gl x86_64_uwp_g
2+
//@ compile-flags: --crate-type cdylib -Csplit-debuginfo=off
3+
//@ check-pass
4+
5+
//@[aarch64_gl] compile-flags: --target aarch64-pc-windows-gnullvm
6+
//@[aarch64_gl] needs-llvm-components: aarch64
7+
8+
//@[i686_g] compile-flags: --target i686-pc-windows-gnu
9+
//@[i686_g] needs-llvm-components: x86
10+
11+
//@[i686_gl] compile-flags: --target i686-pc-windows-gnullvm
12+
//@[i686_gl] needs-llvm-components: x86
13+
14+
//@[i686_uwp_g] compile-flags: --target i686-uwp-windows-gnu
15+
//@[i686_uwp_g] needs-llvm-components: x86
16+
17+
//@[x86_64_g] compile-flags: --target x86_64-pc-windows-gnu
18+
//@[x86_64_g] needs-llvm-components: x86
19+
20+
//@[x86_64_gl] compile-flags: --target x86_64-pc-windows-gnullvm
21+
//@[x86_64_gl] needs-llvm-components: x86
22+
23+
//@[x86_64_uwp_g] compile-flags: --target x86_64-uwp-windows-gnu
24+
//@[x86_64_uwp_g] needs-llvm-components: x86
25+
26+
#![feature(no_core)]
27+
28+
#![no_core]
29+
#![no_std]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=packed` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=packed` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=packed` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=packed` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//@ revisions: aarch64_gl i686_g i686_gl i686_uwp_g x86_64_g x86_64_gl x86_64_uwp_g
2+
//@ compile-flags: --crate-type cdylib -Csplit-debuginfo=packed
3+
//@ error-pattern: error: `-Csplit-debuginfo=packed` is unstable on this platform
4+
5+
//@[aarch64_gl] compile-flags: --target aarch64-pc-windows-gnullvm
6+
//@[aarch64_gl] needs-llvm-components: aarch64
7+
8+
//@[i686_g] compile-flags: --target i686-pc-windows-gnu
9+
//@[i686_g] needs-llvm-components: x86
10+
11+
//@[i686_gl] compile-flags: --target i686-pc-windows-gnullvm
12+
//@[i686_gl] needs-llvm-components: x86
13+
14+
//@[i686_uwp_g] compile-flags: --target i686-uwp-windows-gnu
15+
//@[i686_uwp_g] needs-llvm-components: x86
16+
17+
//@[x86_64_g] compile-flags: --target x86_64-pc-windows-gnu
18+
//@[x86_64_g] needs-llvm-components: x86
19+
20+
//@[x86_64_gl] compile-flags: --target x86_64-pc-windows-gnullvm
21+
//@[x86_64_gl] needs-llvm-components: x86
22+
23+
//@[x86_64_uwp_g] compile-flags: --target x86_64-uwp-windows-gnu
24+
//@[x86_64_uwp_g] needs-llvm-components: x86
25+
26+
#![feature(no_core)]
27+
28+
#![no_core]
29+
#![no_std]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=packed` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=packed` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=packed` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//@ revisions: aarch64_gl i686_g i686_gl i686_uwp_g x86_64_g x86_64_gl x86_64_uwp_g
2+
//@ compile-flags: --crate-type cdylib -Csplit-debuginfo=unpacked
3+
//@ error-pattern: error: `-Csplit-debuginfo=unpacked` is unstable on this platform
4+
5+
//@[aarch64_gl] compile-flags: --target aarch64-pc-windows-gnullvm
6+
//@[aarch64_gl] needs-llvm-components: aarch64
7+
8+
//@[i686_g] compile-flags: --target i686-pc-windows-gnu
9+
//@[i686_g] needs-llvm-components: x86
10+
11+
//@[i686_gl] compile-flags: --target i686-pc-windows-gnullvm
12+
//@[i686_gl] needs-llvm-components: x86
13+
14+
//@[i686_uwp_g] compile-flags: --target i686-uwp-windows-gnu
15+
//@[i686_uwp_g] needs-llvm-components: x86
16+
17+
//@[x86_64_g] compile-flags: --target x86_64-pc-windows-gnu
18+
//@[x86_64_g] needs-llvm-components: x86
19+
20+
//@[x86_64_gl] compile-flags: --target x86_64-pc-windows-gnullvm
21+
//@[x86_64_gl] needs-llvm-components: x86
22+
23+
//@[x86_64_uwp_g] compile-flags: --target x86_64-uwp-windows-gnu
24+
//@[x86_64_uwp_g] needs-llvm-components: x86
25+
26+
#![feature(no_core)]
27+
28+
#![no_core]
29+
#![no_std]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
2+
3+
error: aborting due to 1 previous error
4+

0 commit comments

Comments
 (0)