Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
binop
/
binop-evaluation-order-primitive.rs
blob: 33266d1c0478af0b51bc83a11a2c0a6704d6269e [
file
] [
log
] [
blame
]
//! Test evaluation order in binary operations with primitive types.
//@ run-pass
fn
main
()
{
let
x
=
Box
::
new
(
0
);
assert_eq
!(
0
,
*
x
+
{
drop
(
x
);
let
_
=
Box
::
new
(
main
);
0
}
);
}