Skip to content

Commit

Permalink
Merge pull request #282351 from pacak/patch-5
Browse files Browse the repository at this point in the history
cargo-show-asm tests: Mark `add` as inline(never)
  • Loading branch information
a-n-n-a-l-e-e authored Jan 20, 2024
2 parents e47245e + 82c4e47 commit b826219
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "add"
version = "0.0.0"
EOF
cat >src/lib.rs <<EOF
pub fn add(a: u32, b: u32) -> u32 { a + b }
#[inline(never)] pub fn add(a: u32, b: u32) -> u32 { a + b }
EOF
[[ "$(cargo asm add::add | tee /dev/stderr)" == *"lea eax, "* ]]
Expand Down

0 comments on commit b826219

Please sign in to comment.