mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
Add a test for #2324
This commit is contained in:
parent
631bf68037
commit
60256b7f3d
7
tests/target/issue-2324.rs
Normal file
7
tests/target/issue-2324.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// nested function calls with cast.
|
||||
fn main() {
|
||||
self.ptr
|
||||
.set(intrinsics::arith_offset(self.ptr.get() as *mut u8, 1) as *mut T);
|
||||
self.ptr
|
||||
.set(intrinsics::arith_offset(self.ptr.get(), mem::size_of::<T>() as isize) as *mut u8);
|
||||
}
|
Loading…
Reference in New Issue
Block a user