about summary refs log tree commit diff
path: root/src/test/codegen/iterate-over-array.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-10 06:00:51 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-10 06:00:51 -0700
commitcaf7b678dd2f07918b47120aa73a1bca51d12da1 (patch)
treef403559d5000de9953a771c55519fbffadf4416d /src/test/codegen/iterate-over-array.rs
parentb0f6c29b4f10bafa59723714161a393a204f9c13 (diff)
downloadrust-caf7b678dd2f07918b47120aa73a1bca51d12da1.tar.gz
rust-caf7b678dd2f07918b47120aa73a1bca51d12da1.zip
Add `pub` to all the codegen tests
Otherwise the test function is internalized and LLVM will most likely optimize
it out.
Diffstat (limited to 'src/test/codegen/iterate-over-array.rs')
-rw-r--r--src/test/codegen/iterate-over-array.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/codegen/iterate-over-array.rs b/src/test/codegen/iterate-over-array.rs
index e3bd7f55216..b2cbd8821e4 100644
--- a/src/test/codegen/iterate-over-array.rs
+++ b/src/test/codegen/iterate-over-array.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 #[no_mangle]
-fn test(x: &[int]) -> int {
+pub fn test(x: &[int]) -> int {
     let mut y = 0;
     let mut i = 0;
     while (i < x.len()) {