test: new codegen tests, rename hello.
This commit is contained in:
parent
53e934c2ab
commit
40f74341f3
8 changed files with 65 additions and 0 deletions
9
src/test/codegen/small-dense-int-switch.rs
Normal file
9
src/test/codegen/small-dense-int-switch.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#[no_mangle]
|
||||
fn test(x: int, y: int) -> int {
|
||||
match x {
|
||||
1 => y,
|
||||
2 => y*2,
|
||||
4 => y*3,
|
||||
_ => 11
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue