about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2015-01-03 02:49:42 -0600
committerTravis Watkins <amaranth@ubuntu.com>2015-01-13 01:29:01 -0600
commit2cc81ac531c10a678ee25128a36fdc56ba00aaa3 (patch)
tree450536f5b6bec0f7e5de63250d6c8d02d1839f20 /src/test/codegen/stack-alloc-string-slice.rs
parent3d5fbae33897a8340542f21b6ded913148ca9199 (diff)
downloadrust-2cc81ac531c10a678ee25128a36fdc56ba00aaa3.tar.gz
rust-2cc81ac531c10a678ee25128a36fdc56ba00aaa3.zip
Return passed value from black_box
By returning the passed value black_box can be used on data being
passed to a function being benchmarked. This ensures the compiler
does not optimize the function for the input which could result in
the entire function being optimized away.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions