Skip to content

Commit 60256b7

Browse files
committed
Add a test for rust-lang#2324
1 parent 631bf68 commit 60256b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/target/issue-2324.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// nested function calls with cast.
2+
fn main() {
3+
self.ptr
4+
.set(intrinsics::arith_offset(self.ptr.get() as *mut u8, 1) as *mut T);
5+
self.ptr
6+
.set(intrinsics::arith_offset(self.ptr.get(), mem::size_of::<T>() as isize) as *mut u8);
7+
}

0 commit comments

Comments
 (0)