diff --git a/compiler/testData/codegen/box/unit/kt3634.kt b/compiler/testData/codegen/box/unit/kt3634.kt new file mode 100644 index 00000000000..77b98db3c26 --- /dev/null +++ b/compiler/testData/codegen/box/unit/kt3634.kt @@ -0,0 +1,8 @@ +val c = Unit.VALUE +val d = c + +fun box(): String { + c + d + return "OK" +} diff --git a/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java b/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java index 6dec0ea06a6..f401e51c6d3 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/codegen/generated/BlackBoxCodegenTestGenerated.java @@ -4792,6 +4792,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/unit"), Pattern.compile("^(.+)\\.kt$"), true); } + @TestMetadata("kt3634.kt") + public void testKt3634() throws Exception { + doTest("compiler/testData/codegen/box/unit/kt3634.kt"); + } + @TestMetadata("kt4212.kt") public void testKt4212() throws Exception { doTest("compiler/testData/codegen/box/unit/kt4212.kt");