tests: fixture 파일명과 unit 동기화
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
unit okbrch;
|
||||
|
||||
fn read(r: &i32) -> i32 { return r.^; }
|
||||
|
||||
fn test(cond: bool) -> i32 {
|
||||
var x: i32 = 3;
|
||||
let r = &x;
|
||||
if cond {
|
||||
let a = read(r);
|
||||
} else {
|
||||
let b = read(r);
|
||||
}
|
||||
x += 1;
|
||||
return x;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user