[JS Tests] Prepare JS tests for testing backend diagnostics
- Introducing a backend diagnostic handler. - Moving JS diagnostic tests from test-common to js.test to avoid circular module dependencies. ^KT-61886 Fixed
This commit is contained in:
committed by
Space Team
parent
b672ba8eaf
commit
be4f6beddb
Vendored
+4
-1
@@ -1,7 +1,10 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// TODO: fix in KT-61881
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE
|
||||
// FIR_IDENTICAL
|
||||
|
||||
inline fun f(): Unit = <!INLINE_CALL_CYCLE!>g()<!>
|
||||
|
||||
inline fun g(): Unit = <!INLINE_CALL_CYCLE!>h()<!>
|
||||
|
||||
inline fun h(): Unit = <!INLINE_CALL_CYCLE!>f()<!>
|
||||
inline fun h(): Unit = <!INLINE_CALL_CYCLE!>f()<!>
|
||||
|
||||
Vendored
+4
-1
@@ -1,7 +1,10 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// TODO: fix in KT-61881
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE
|
||||
// FIR_IDENTICAL
|
||||
|
||||
inline fun f(): Unit = <!INLINE_CALL_CYCLE!>g()<!>
|
||||
|
||||
inline fun g(): Unit = h { <!INLINE_CALL_CYCLE!>f()<!> }
|
||||
|
||||
inline fun h(fn: ()->Unit): Unit = fn()
|
||||
inline fun h(fn: ()->Unit): Unit = fn()
|
||||
|
||||
+4
-1
@@ -1,7 +1,10 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// TODO: fix in KT-61881
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE
|
||||
// FIR_IDENTICAL
|
||||
|
||||
public inline fun f():Unit = <!INLINE_CALL_CYCLE!>g()<!>
|
||||
|
||||
public inline fun g(): Unit = <!INLINE_CALL_CYCLE!>h()<!>
|
||||
|
||||
public inline fun h(): Unit = <!INLINE_CALL_CYCLE!>f()<!>
|
||||
public inline fun h(): Unit = <!INLINE_CALL_CYCLE!>f()<!>
|
||||
|
||||
+3
@@ -1,4 +1,7 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// TODO: fix in KT-61881
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE
|
||||
// FIR_IDENTICAL
|
||||
|
||||
inline fun f(): Unit = <!INLINE_CALL_CYCLE!>g()<!>
|
||||
|
||||
|
||||
+3
@@ -1,5 +1,8 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// TODO: fix in KT-61882
|
||||
// !LANGUAGE: -RestrictRetentionForExpressionAnnotations
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// FIR_IDENTICAL
|
||||
|
||||
package foo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user