diff options
| author | Caio <c410.f3r@gmail.com> | 2021-11-06 15:35:20 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2021-11-06 15:35:20 -0300 |
| commit | 7fd15f09008dd72f40d76a5bebb60e3991095a5f (patch) | |
| tree | 45b540395fe976fa12c67d74f4f965023b84ad3f /src/test/ui/thinlto/msvc-imp-present.rs | |
| parent | d32993afe81a49701edd6f2b8f018020ca50da1a (diff) | |
| download | rust-7fd15f09008dd72f40d76a5bebb60e3991095a5f.tar.gz rust-7fd15f09008dd72f40d76a5bebb60e3991095a5f.zip | |
Move some tests to more reasonable directories
Diffstat (limited to 'src/test/ui/thinlto/msvc-imp-present.rs')
| -rw-r--r-- | src/test/ui/thinlto/msvc-imp-present.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/thinlto/msvc-imp-present.rs b/src/test/ui/thinlto/msvc-imp-present.rs deleted file mode 100644 index 5498afb2937..00000000000 --- a/src/test/ui/thinlto/msvc-imp-present.rs +++ /dev/null @@ -1,22 +0,0 @@ -// run-pass - -// aux-build:msvc-imp-present.rs -// compile-flags: -Z thinlto -C codegen-units=8 -// no-prefer-dynamic - -// On MSVC we have a "hack" where we emit symbols that look like `_imp_$name` -// for all exported statics. This is done because we apply `dllimport` to all -// imported constants and this allows everything to actually link correctly. -// -// The ThinLTO passes aggressively remove symbols if they can, and this test -// asserts that the ThinLTO passes don't remove these compiler-generated -// `_imp_*` symbols. The external library that we link in here is compiled with -// ThinLTO and multiple codegen units and has a few exported constants. Note -// that we also namely compile the library as both a dylib and an rlib, but we -// link the rlib to ensure that we assert those generated symbols exist. - -extern crate msvc_imp_present as bar; - -fn main() { - println!("{}", bar::A); -} |
