[TD] Update diagnostics test data due to new test runners
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
FILE: kt10240.kt
|
||||
public final fun a(): R|kotlin/Int| {
|
||||
local final fun b(): R|kotlin/Int| {
|
||||
lvar c: R|kotlin/Int?| = Null(null)
|
||||
when () {
|
||||
==(R|<local>/c|, Null(null)) || CMP(<, Int(0).R|kotlin/Int.compareTo|(R|<local>/c|)) -> {
|
||||
R|<local>/c| = Int(0)
|
||||
}
|
||||
}
|
||||
|
||||
^b R|<local>/c| ?: Int(0)
|
||||
}
|
||||
|
||||
lvar c: R|kotlin/Int| = Int(0)
|
||||
R|<local>/c| = Int(0)
|
||||
^a R|<local>/c|
|
||||
}
|
||||
public final fun myRun(f: R|() -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
R|<local>/f|.R|SubstitutionOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()
|
||||
}
|
||||
public final fun println(arg: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
}
|
||||
public final fun d(): R|kotlin/Unit| {
|
||||
R|/myRun|(<L> = myRun@fun <anonymous>(): R|kotlin/Unit| {
|
||||
lvar koko: R|kotlin/String?| = String(Alpha)
|
||||
while(!=(R|<local>/koko|, Null(null))) {
|
||||
R|/println|(R|<local>/koko|.R|kotlin/String.length|)
|
||||
R|<local>/koko| = Null(null)
|
||||
}
|
||||
|
||||
}
|
||||
)
|
||||
R|/myRun|(<L> = myRun@fun <anonymous>(): R|kotlin/Unit| {
|
||||
lvar koko: R|kotlin/String?| = String(Omega)
|
||||
while(!=(R|<local>/koko|, Null(null))) {
|
||||
R|/println|(R|<local>/koko|.R|kotlin/String.length|)
|
||||
R|<local>/koko| = Null(null)
|
||||
}
|
||||
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user