diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-21 14:34:12 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-22 14:28:48 +0200 |
| commit | a27f3e3fd1e4d16160f8885b6b06665b5319f56c (patch) | |
| tree | b033935392cbadf6f85d2dbddf433a88e323aeeb /tests/codegen/coercions.rs | |
| parent | ed93c1783b404d728d4809973a0550eb33cd293f (diff) | |
| download | rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.tar.gz rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.zip | |
Rename `tests/codegen` into `tests/codegen-llvm`
Diffstat (limited to 'tests/codegen/coercions.rs')
| -rw-r--r-- | tests/codegen/coercions.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/codegen/coercions.rs b/tests/codegen/coercions.rs deleted file mode 100644 index 63c1742c639..00000000000 --- a/tests/codegen/coercions.rs +++ /dev/null @@ -1,19 +0,0 @@ -//@ compile-flags: -C no-prepopulate-passes - -#![crate_type = "lib"] - -static X: i32 = 5; - -// CHECK-LABEL: @raw_ptr_to_raw_ptr_noop -// CHECK-NOT: alloca -#[no_mangle] -pub fn raw_ptr_to_raw_ptr_noop() -> *const i32 { - &X as *const i32 -} - -// CHECK-LABEL: @reference_to_raw_ptr_noop -// CHECK-NOT: alloca -#[no_mangle] -pub fn reference_to_raw_ptr_noop() -> *const i32 { - &X -} |
