about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/rust/cargo-show-asm/test-basic-x86_64.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/rust/cargo-show-asm/test-basic-x86_64.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/rust/cargo-show-asm/test-basic-x86_64.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/tools/rust/cargo-show-asm/test-basic-x86_64.nix b/nixpkgs/pkgs/development/tools/rust/cargo-show-asm/test-basic-x86_64.nix
index c0dd8b421b0a..ca1738f02185 100644
--- a/nixpkgs/pkgs/development/tools/rust/cargo-show-asm/test-basic-x86_64.nix
+++ b/nixpkgs/pkgs/development/tools/rust/cargo-show-asm/test-basic-x86_64.nix
@@ -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, "* ]]