Use box tests to check if the light analysis mode (without analyzing bodies when possible) produces the same result as the complete analysis. See also the next commit in which light analysis mode is applied. Note that no tests were changed.
This commit is contained in:
committed by
Yan Zhulanow
parent
8bdb54929b
commit
328286ab14
+6
@@ -0,0 +1,6 @@
|
||||
public final class Kt6176Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Object
|
||||
public final static @org.jetbrains.annotations.NotNull method some(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: java.lang.Object): java.lang.Object
|
||||
public final static @org.jetbrains.annotations.NotNull method some1(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.NotNull p1: java.lang.Object): java.lang.Object
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
public final class A {
|
||||
public final static field Companion: A.Companion
|
||||
inner class A/Companion
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final static class A/Companion {
|
||||
inner class A/Companion
|
||||
private method <init>(): void
|
||||
public final method invoke(p0: int): int
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnClassObject1Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
public final class A {
|
||||
public final static field Companion: A.Companion
|
||||
inner class A/Companion
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final static class A/Companion {
|
||||
inner class A/Companion
|
||||
private method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public interface B
|
||||
|
||||
|
||||
public final class InvokeOnClassObject2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method invoke(@org.jetbrains.annotations.NotNull p0: B, p1: int): int
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
public final class A {
|
||||
inner class A/Nested
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final static class A/Nested {
|
||||
public final static field Companion: A.Nested.Companion
|
||||
inner class A/Nested
|
||||
inner class A/Nested/Companion
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final static class A/Nested/Companion {
|
||||
inner class A/Nested
|
||||
inner class A/Nested/Companion
|
||||
private method <init>(): void
|
||||
public final method invoke(p0: int): int
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnClassObjectOfNestedClass1Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
public final class A {
|
||||
inner class A/Nested
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final static class A/Nested {
|
||||
public final static field Companion: A.Nested.Companion
|
||||
inner class A/Nested
|
||||
inner class A/Nested/Companion
|
||||
public method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final static class A/Nested/Companion {
|
||||
inner class A/Nested
|
||||
inner class A/Nested/Companion
|
||||
private method <init>(): void
|
||||
public final method invoke(p0: int): int
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnClassObjectOfNestedClass2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
public enum class A {
|
||||
public final static field ONE: A
|
||||
public final static field TWO: A
|
||||
protected method <init>(p0: java.lang.String, p1: int): void
|
||||
public final method invoke(p0: int): int
|
||||
public static method valueOf(p0: java.lang.String): A
|
||||
public static method values(): A[]
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnEnum1Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
public enum class A {
|
||||
public final static field ONE: A
|
||||
public final static field TWO: A
|
||||
protected method <init>(p0: java.lang.String, p1: int): void
|
||||
public static method valueOf(p0: java.lang.String): A
|
||||
public static method values(): A[]
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnEnum2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method invoke(@org.jetbrains.annotations.NotNull p0: A, p1: int): int
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
public enum class A {
|
||||
public final static field ONE: A
|
||||
public final static field TWO: A
|
||||
protected method <init>(p0: java.lang.String, p1: int): void
|
||||
public final method invoke(p0: int): int
|
||||
public static method valueOf(p0: java.lang.String): A
|
||||
public static method values(): A[]
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnImportedEnum1Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
public enum class A {
|
||||
public final static field ONE: A
|
||||
public final static field TWO: A
|
||||
protected method <init>(p0: java.lang.String, p1: int): void
|
||||
public static method valueOf(p0: java.lang.String): A
|
||||
public static method values(): A[]
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnImportedEnum2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method invoke(@org.jetbrains.annotations.NotNull p0: A, p1: int): int
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
public final class A {
|
||||
public final static field INSTANCE: A
|
||||
private method <init>(): void
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnObject1Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method invoke(@org.jetbrains.annotations.NotNull p0: A, p1: int): int
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
public final class A {
|
||||
public final static field INSTANCE: A
|
||||
private method <init>(): void
|
||||
public final method invoke(p0: int): int
|
||||
}
|
||||
|
||||
|
||||
public final class InvokeOnObject2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class DefaultArgsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public synthetic static method test$default(p0: int, p1: java.lang.Object, p2: int, p3: java.lang.Object): void
|
||||
public final static method test(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.Object): void
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
public class A {
|
||||
public method <init>(): void
|
||||
public synthetic static method foo$default(p0: A, p1: java.lang.String, p2: int, p3: java.lang.Object): java.lang.String
|
||||
public @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class B {
|
||||
public method <init>(): void
|
||||
public @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
}
|
||||
|
||||
|
||||
public final class DefaultArgsOverriddenKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class ExtensionTailCallKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(p0: int, p1: int): void
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/diagnostics/functions/tailRecursion/functionWithNoTails.txt
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class FunctionWithNoTailsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method noTails(): void
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class FunctionWithNonTailRecursionsKt {
|
||||
public final static method badTails(p0: int): int
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class FunctionWithoutAnnotationKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method withoutAnnotation(p0: int): int
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class InfixCallKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int, p1: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class InfixRecursiveCallKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(p0: int, p1: int): void
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class InsideElvisKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.Nullable method test(p0: int): java.lang.Integer
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
public final class B {
|
||||
inner class B/C
|
||||
public method <init>(): void
|
||||
public final method h2(@org.jetbrains.annotations.NotNull p0: java.lang.Object): void
|
||||
public final @org.jetbrains.annotations.NotNull method makeC(): B.C
|
||||
}
|
||||
|
||||
|
||||
public final class B/C {
|
||||
synthetic final field this$0: B
|
||||
inner class B/C
|
||||
public method <init>(p0: B): void
|
||||
public final method h(p0: int): void
|
||||
public final method h2(@org.jetbrains.annotations.NotNull p0: java.lang.Object): void
|
||||
}
|
||||
|
||||
|
||||
public final class LabeledThisReferencesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class LoopsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class MultilevelBlocksKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class RealIteratorFoldlKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foldl(@org.jetbrains.annotations.NotNull p0: java.util.Iterator, p1: java.lang.Object, @org.jetbrains.annotations.NotNull p2: kotlin.jvm.functions.Function2): java.lang.Object
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
public final class RealStringEscapeKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public synthetic static method escape$default(p0: java.lang.String, p1: int, p2: java.lang.StringBuilder, p3: int, p4: java.lang.Object): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method escape(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int, @org.jetbrains.annotations.NotNull p2: java.lang.StringBuilder): java.lang.String
|
||||
public final static @org.jetbrains.annotations.Nullable method escapeChar(p0: char): java.lang.String
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class RealStringRepeatKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public synthetic static method repeat$default(p0: java.lang.String, p1: int, p2: java.lang.StringBuilder, p3: int, p4: java.lang.Object): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method repeat(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int, @org.jetbrains.annotations.NotNull p2: java.lang.StringBuilder): java.lang.String
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public final class RecursiveCallInLambdaKt {
|
||||
public final static method bar(@org.jetbrains.annotations.NotNull p0: java.lang.Object): void
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(): void
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class RecursiveCallInLocalFunctionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(): void
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class RecursiveInnerFunctionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(): void
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class ReturnIfKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class ReturnInCatchKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class ReturnInFinallyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/diagnostics/functions/tailRecursion/returnInIfInFinally.txt
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class ReturnInIfInFinallyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/diagnostics/functions/tailRecursion/returnInParentheses.txt
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class ReturnInParenthesesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(p0: int): void
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class ReturnInTryKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class SimpleBlockKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class SimpleReturnKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class SimpleReturnWithElseKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): int
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class SumKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method sum(p0: long, p1: long): long
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class TailCallInBlockInParenthesesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(p0: int): void
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class TailCallInParenthesesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(p0: int): void
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class TailRecursionInFinallyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: boolean): void
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
public final method f1(p0: int): void
|
||||
public final method f2(p0: int): void
|
||||
public final method f3(@org.jetbrains.annotations.NotNull p0: A): void
|
||||
}
|
||||
|
||||
|
||||
public final class ThisReferencesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class UnitBlocksKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(p0: int): void
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class WhenWithConditionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method withWhen(p0: int): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class WhenWithInRangeKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method withWhen(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.Object): int
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class WhenWithIsKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method withWhen(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.Object): int
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
public final class WhenWithoutConditionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method withWhen2(p0: int): int
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
public final class D {
|
||||
public final static field INSTANCE: D
|
||||
private method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(@org.jetbrains.annotations.NotNull p0: java.lang.String[]): java.lang.String[]
|
||||
}
|
||||
|
||||
|
||||
public final class Kt4172Kt {
|
||||
private final static @kotlin.Suppress method array(p0: java.lang.Object[]): java.lang.Object[]
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method main(@org.jetbrains.annotations.NotNull p0: java.lang.String[]): void
|
||||
}
|
||||
Reference in New Issue
Block a user