test: new codegen tests, rename hello.
This commit is contained in:
parent
53e934c2ab
commit
40f74341f3
8 changed files with 65 additions and 0 deletions
8
src/test/codegen/scalar-function-call.rs
Normal file
8
src/test/codegen/scalar-function-call.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fn foo(x: int) -> int {
|
||||
x * x
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
fn test() {
|
||||
let x = foo(10);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue