diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/codegen/external-no-mangle-statics.rs | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/codegen/external-no-mangle-statics.rs')
-rw-r--r-- | src/test/codegen/external-no-mangle-statics.rs | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/test/codegen/external-no-mangle-statics.rs b/src/test/codegen/external-no-mangle-statics.rs deleted file mode 100644 index c6ecb7aa9..000000000 --- a/src/test/codegen/external-no-mangle-statics.rs +++ /dev/null @@ -1,77 +0,0 @@ -// revisions: lib staticlib -// ignore-emscripten default visibility is hidden -// compile-flags: -O -// [lib] compile-flags: --crate-type lib -// [staticlib] compile-flags: --crate-type staticlib -// `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their -// definitions - -// CHECK: @A = local_unnamed_addr constant -#[no_mangle] -static A: u8 = 0; - -// CHECK: @B = local_unnamed_addr global -#[no_mangle] -static mut B: u8 = 0; - -// CHECK: @C = local_unnamed_addr constant -#[no_mangle] -pub static C: u8 = 0; - -// CHECK: @D = local_unnamed_addr global -#[no_mangle] -pub static mut D: u8 = 0; - -mod private { - // CHECK: @E = local_unnamed_addr constant - #[no_mangle] - static E: u8 = 0; - - // CHECK: @F = local_unnamed_addr global - #[no_mangle] - static mut F: u8 = 0; - - // CHECK: @G = local_unnamed_addr constant - #[no_mangle] - pub static G: u8 = 0; - - // CHECK: @H = local_unnamed_addr global - #[no_mangle] - pub static mut H: u8 = 0; -} - -const HIDDEN: () = { - // CHECK: @I = local_unnamed_addr constant - #[no_mangle] - static I: u8 = 0; - - // CHECK: @J = local_unnamed_addr global - #[no_mangle] - static mut J: u8 = 0; - - // CHECK: @K = local_unnamed_addr constant - #[no_mangle] - pub static K: u8 = 0; - - // CHECK: @L = local_unnamed_addr global - #[no_mangle] - pub static mut L: u8 = 0; -}; - -fn x() { - // CHECK: @M = local_unnamed_addr constant - #[no_mangle] - static M: fn() = x; - - // CHECK: @N = local_unnamed_addr global - #[no_mangle] - static mut N: u8 = 0; - - // CHECK: @O = local_unnamed_addr constant - #[no_mangle] - pub static O: u8 = 0; - - // CHECK: @P = local_unnamed_addr global - #[no_mangle] - pub static mut P: u8 = 0; -} |