Rollup merge of #95366 - c410-f3r:moar-tests, r=petrochenkov
Remove test files with duplicated checksums cc https://github.com/rust-lang/rust/issues/73494 r? `@petrochenkov`
This commit is contained in:
commit
1367ede625
@ -1,9 +0,0 @@
|
||||
#![crate_name = "anonexternmod"]
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
#[link(name = "rust_test_helpers", kind = "static")]
|
||||
extern "C" {
|
||||
pub fn rust_get_test_int() -> libc::intptr_t;
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
#![crate_name = "foreign_lib"]
|
||||
#![feature(rustc_private)]
|
||||
|
||||
pub mod rustrt {
|
||||
extern crate libc;
|
||||
|
||||
#[link(name = "rust_test_helpers", kind = "static")]
|
||||
extern "C" {
|
||||
pub fn rust_get_test_int() -> libc::intptr_t;
|
||||
}
|
||||
}
|
||||
|
||||
pub mod rustrt2 {
|
||||
extern crate libc;
|
||||
|
||||
extern "C" {
|
||||
pub fn rust_get_test_int() -> libc::intptr_t;
|
||||
}
|
||||
}
|
||||
|
||||
pub mod rustrt3 {
|
||||
// Different type, but same ABI (on all supported platforms).
|
||||
// Ensures that we don't ICE or trigger LLVM asserts when
|
||||
// importing the same symbol under different types.
|
||||
// See https://github.com/rust-lang/rust/issues/32740.
|
||||
extern "C" {
|
||||
pub fn rust_get_test_int() -> *const u8;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn local_uses() {
|
||||
unsafe {
|
||||
let x = rustrt::rust_get_test_int();
|
||||
assert_eq!(x, rustrt2::rust_get_test_int());
|
||||
assert_eq!(x as *const _, rustrt3::rust_get_test_int());
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
#![crate_name = "anonexternmod"]
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
#[link(name = "rust_test_helpers", kind = "static")]
|
||||
extern "C" {
|
||||
pub fn rust_get_test_int() -> libc::intptr_t;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
pub fn foo(x: &usize) -> usize {
|
||||
*x
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
pub extern "C" fn bar() {
|
||||
}
|
||||
|
||||
pub const foopy: &'static str = "hi there";
|
||||
pub const uint_val: usize = 12;
|
||||
pub const uint_expr: usize = (1 << uint_val) - 1;
|
Loading…
Reference in New Issue
Block a user