[FIR] Fix TEST SPEC tests
Ensure the test data contents for both the frontends are identical. This is needed for proper analysis of K2-differences.
This commit is contained in:
committed by
Space Team
parent
e6633d3d92
commit
7541732752
Vendored
+9
@@ -1,6 +1,15 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SPEC VERSION: 0.1-218
|
||||
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 3
|
||||
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: try-expression has to start with a try body and continue with zero ore more catch blocks
|
||||
*/
|
||||
fun throwException(): Nothing = throw Exception()
|
||||
|
||||
class ExcA() : Exception()
|
||||
|
||||
Vendored
+9
@@ -1,6 +1,15 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SPEC VERSION: 0.1-218
|
||||
* MAIN LINK: expressions, try-expression -> paragraph 1 -> sentence 4
|
||||
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: try-expression has to start with a try body, catch blocks and finally block
|
||||
*/
|
||||
fun throwException(): Nothing = throw Exception()
|
||||
|
||||
class ExcA() : Exception()
|
||||
|
||||
Vendored
+10
@@ -1,6 +1,16 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
|
||||
/*
|
||||
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
|
||||
*
|
||||
* SPEC VERSION: 0.1-218
|
||||
* MAIN LINK:expressions, try-expression -> paragraph 1 -> sentence 1
|
||||
* PRIMARY LINKS: expressions, try-expression -> paragraph 1 -> sentence 2
|
||||
* expressions, try-expression -> paragraph 1 -> sentence 5
|
||||
* NUMBER: 1
|
||||
* DESCRIPTION: try-expression has to start with a try body
|
||||
*/
|
||||
fun throwException(): Nothing = throw Exception()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user