diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-10 06:00:51 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-10 06:00:51 -0700 |
| commit | caf7b678dd2f07918b47120aa73a1bca51d12da1 (patch) | |
| tree | f403559d5000de9953a771c55519fbffadf4416d /src/test/codegen/virtual-method-call.rs | |
| parent | b0f6c29b4f10bafa59723714161a393a204f9c13 (diff) | |
| download | rust-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/virtual-method-call.rs')
| -rw-r--r-- | src/test/codegen/virtual-method-call.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/codegen/virtual-method-call.rs b/src/test/codegen/virtual-method-call.rs index 66dd41984a7..513a299cc63 100644 --- a/src/test/codegen/virtual-method-call.rs +++ b/src/test/codegen/virtual-method-call.rs @@ -13,6 +13,6 @@ trait Trait { } #[no_mangle] -fn test(t: &Trait) -> int { +pub fn test(t: &Trait) -> int { t.method() } |
