[FIR TEST] Add CLI test with should-be-error (not yet)

This commit is contained in:
Mikhail Glukhikh
2020-08-04 09:36:37 +03:00
parent 824991a9dd
commit 9c3b8484b9
4 changed files with 16 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
$TESTDATA_DIR$/firError.kt
-Xuse-fir
-d
$TEMP_DIR$
+6
View File
@@ -0,0 +1,6 @@
fun println(val x: Int) {}
fun main() {
val x: Int
println(x)
}
+1
View File
@@ -0,0 +1 @@
OK
@@ -275,6 +275,11 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/fileClassClashMultipleFiles.args");
}
@TestMetadata("firError.args")
public void testFirError() throws Exception {
runTest("compiler/testData/cli/jvm/firError.args");
}
@TestMetadata("firHello.args")
public void testFirHello() throws Exception {
runTest("compiler/testData/cli/jvm/firHello.args");