about summary refs log tree commit diff
path: root/src/test/codegen/static-method-call-multi.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/static-method-call-multi.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/static-method-call-multi.rs')
-rw-r--r--src/test/codegen/static-method-call-multi.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/codegen/static-method-call-multi.rs b/src/test/codegen/static-method-call-multi.rs
index 9cb011a49f8..efac93692f6 100644
--- a/src/test/codegen/static-method-call-multi.rs
+++ b/src/test/codegen/static-method-call-multi.rs
@@ -19,10 +19,10 @@ impl Struct {
 }
 
 #[no_mangle]
-fn test(a: &Struct,
-        b: &Struct,
-        c: &Struct,
-        d: &Struct,
-        e: &Struct) -> int {
+pub fn test(a: &Struct,
+            b: &Struct,
+            c: &Struct,
+            d: &Struct,
+            e: &Struct) -> int {
     a.method(b.method(c.method(d.method(e.method(1)))))
 }