about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-06 11:13:20 +0200
committerRalf Jung <post@ralfj.de>2023-09-07 09:14:29 +0200
commit8922c0c541c0fbfe6d0465eed6362a2bdbe6a0f0 (patch)
treed5f98127c941d3603c63094adc091891906e8fb5 /tests/codegen
parentc9810261956faa1152ade6a37efe6583b2caaa20 (diff)
downloadrust-8922c0c541c0fbfe6d0465eed6362a2bdbe6a0f0.tar.gz
rust-8922c0c541c0fbfe6d0465eed6362a2bdbe6a0f0.zip
add support for rustc_abi(assert_eq) and use it to test some repr(transparent) cases
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/repr/transparent.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/codegen/repr/transparent.rs b/tests/codegen/repr/transparent.rs
index b140fc719da..c5974248bb3 100644
--- a/tests/codegen/repr/transparent.rs
+++ b/tests/codegen/repr/transparent.rs
@@ -43,7 +43,6 @@ pub extern "C" fn test_WithZst(_: WithZst) -> WithZst { loop {} }
 #[repr(transparent)]
 pub struct WithZeroSizedArray(*const f32, [i8; 0]);
 
-// Apparently we use i32* when newtype-unwrapping f32 pointers. Whatever.
 // CHECK: define{{.*}}ptr @test_WithZeroSizedArray(ptr noundef %_1)
 #[no_mangle]
 pub extern "C" fn test_WithZeroSizedArray(_: WithZeroSizedArray) -> WithZeroSizedArray { loop {} }