From caf7b678dd2f07918b47120aa73a1bca51d12da1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 10 Oct 2013 06:00:51 -0700 Subject: Add `pub` to all the codegen tests Otherwise the test function is internalized and LLVM will most likely optimize it out. --- src/test/codegen/stack-alloc-string-slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/codegen/stack-alloc-string-slice.rs') diff --git a/src/test/codegen/stack-alloc-string-slice.rs b/src/test/codegen/stack-alloc-string-slice.rs index b776f5a46a7..188ee246bf3 100644 --- a/src/test/codegen/stack-alloc-string-slice.rs +++ b/src/test/codegen/stack-alloc-string-slice.rs @@ -9,6 +9,6 @@ // except according to those terms. #[no_mangle] -fn test() { +pub fn test() { let _x = "hello"; } -- cgit 1.4.1-3-g733a5