Skip to content

Commit a44644e

Browse files
committed
Update tests
1 parent 127afb3 commit a44644e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/unit/out/refcount/va_arg_fn_ptr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ pub fn add_2(a: i32, b: i32) -> i32 {
1919
let b: Value<i32> = Rc::new(RefCell::new(b));
2020
return ((*a.borrow()) + (*b.borrow()));
2121
}
22-
pub fn apply_unary_3(x: i32, args: &[VaArg]) -> i32 {
22+
pub fn apply_unary_3(x: i32, __args: &[VaArg]) -> i32 {
2323
let x: Value<i32> = Rc::new(RefCell::new(x));
2424
let ap: Value<VaList> = Rc::new(RefCell::new(VaList::default()));
25-
(*ap.borrow_mut()) = VaList::new(args);
25+
(*ap.borrow_mut()) = VaList::new(__args);
2626
let fn_: Value<FnPtr<fn(i32) -> i32>> = Rc::new(RefCell::new(
2727
((*ap.borrow_mut()).arg::<FnPtr<fn(i32) -> i32>>()).clone(),
2828
));
@@ -34,11 +34,11 @@ pub fn apply_unary_3(x: i32, args: &[VaArg]) -> i32 {
3434
));
3535
return (*result.borrow());
3636
}
37-
pub fn apply_binary_4(a: i32, b: i32, args: &[VaArg]) -> i32 {
37+
pub fn apply_binary_4(a: i32, b: i32, __args: &[VaArg]) -> i32 {
3838
let a: Value<i32> = Rc::new(RefCell::new(a));
3939
let b: Value<i32> = Rc::new(RefCell::new(b));
4040
let ap: Value<VaList> = Rc::new(RefCell::new(VaList::default()));
41-
(*ap.borrow_mut()) = VaList::new(args);
41+
(*ap.borrow_mut()) = VaList::new(__args);
4242
let fn_: Value<FnPtr<fn(i32, i32) -> i32>> = Rc::new(RefCell::new(
4343
((*ap.borrow_mut()).arg::<FnPtr<fn(i32, i32) -> i32>>()).clone(),
4444
));

tests/unit/out/unsafe/va_arg_fn_ptr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ pub unsafe fn negate_1(mut x: i32) -> i32 {
1515
pub unsafe fn add_2(mut a: i32, mut b: i32) -> i32 {
1616
return ((a) + (b));
1717
}
18-
pub unsafe fn apply_unary_3(mut x: i32, args: &[VaArg]) -> i32 {
18+
pub unsafe fn apply_unary_3(mut x: i32, __args: &[VaArg]) -> i32 {
1919
let mut ap: VaList = VaList::default();
20-
ap = VaList::new(args);
20+
ap = VaList::new(__args);
2121
let mut fn_: Option<unsafe fn(i32) -> i32> = std::mem::transmute::<
2222
*mut ::libc::c_void,
2323
Option<unsafe fn(i32) -> i32>,
@@ -28,9 +28,9 @@ pub unsafe fn apply_unary_3(mut x: i32, args: &[VaArg]) -> i32 {
2828
});
2929
return result;
3030
}
31-
pub unsafe fn apply_binary_4(mut a: i32, mut b: i32, args: &[VaArg]) -> i32 {
31+
pub unsafe fn apply_binary_4(mut a: i32, mut b: i32, __args: &[VaArg]) -> i32 {
3232
let mut ap: VaList = VaList::default();
33-
ap = VaList::new(args);
33+
ap = VaList::new(__args);
3434
let mut fn_: Option<unsafe fn(i32, i32) -> i32> = std::mem::transmute::<
3535
*mut ::libc::c_void,
3636
Option<unsafe fn(i32, i32) -> i32>,

0 commit comments

Comments
 (0)