Add pub to all the codegen tests
Otherwise the test function is internalized and LLVM will most likely optimize it out.
This commit is contained in:
parent
b0f6c29b4f
commit
caf7b678dd
9 changed files with 13 additions and 13 deletions
|
|
@ -9,6 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
#[no_mangle]
|
||||
fn test() {
|
||||
pub fn test() {
|
||||
let _x = "hello";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue