[Test] Disable UNUSED_* diagnostics in tests which are not belong to contolFlowAnalysis suite
This commit is contained in:
committed by
TeamCityServer
parent
85949b387e
commit
cd890d5833
@@ -2,36 +2,36 @@
|
||||
// KT-451 Incorrect character literals cause assertion failures
|
||||
|
||||
fun ff() {
|
||||
val <!UNUSED_VARIABLE!>b<!> = <!EMPTY_CHARACTER_LITERAL!>''<!>
|
||||
val <!UNUSED_VARIABLE!>c<!> = <!TOO_MANY_CHARACTERS_IN_CHARACTER_LITERAL!>'23'<!>
|
||||
val <!UNUSED_VARIABLE!>d<!> = <!INCORRECT_CHARACTER_LITERAL!>'a<!>
|
||||
val <!UNUSED_VARIABLE!>e<!> = <!INCORRECT_CHARACTER_LITERAL!>'ab<!>
|
||||
val <!UNUSED_VARIABLE!>f<!> = '<!ILLEGAL_ESCAPE!>\<!>'
|
||||
val b = <!EMPTY_CHARACTER_LITERAL!>''<!>
|
||||
val c = <!TOO_MANY_CHARACTERS_IN_CHARACTER_LITERAL!>'23'<!>
|
||||
val d = <!INCORRECT_CHARACTER_LITERAL!>'a<!>
|
||||
val e = <!INCORRECT_CHARACTER_LITERAL!>'ab<!>
|
||||
val f = '<!ILLEGAL_ESCAPE!>\<!>'
|
||||
}
|
||||
|
||||
fun test() {
|
||||
<!UNUSED_EXPRESSION!>'a'<!>
|
||||
<!UNUSED_EXPRESSION!>'\n'<!>
|
||||
<!UNUSED_EXPRESSION!>'\t'<!>
|
||||
<!UNUSED_EXPRESSION!>'\b'<!>
|
||||
<!UNUSED_EXPRESSION!>'\r'<!>
|
||||
<!UNUSED_EXPRESSION!>'\"'<!>
|
||||
<!UNUSED_EXPRESSION!>'\''<!>
|
||||
<!UNUSED_EXPRESSION!>'\\'<!>
|
||||
<!UNUSED_EXPRESSION!>'\$'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\x<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\123<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\ra<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\000<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\000<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'\u0000'<!>
|
||||
<!UNUSED_EXPRESSION!>'\u000a'<!>
|
||||
<!UNUSED_EXPRESSION!>'\u000A'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\u<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\u0<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\u00<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\u000<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\u000z<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\\u000<!>'<!>
|
||||
<!UNUSED_EXPRESSION!>'<!ILLEGAL_ESCAPE!>\<!>'<!>
|
||||
'a'
|
||||
'\n'
|
||||
'\t'
|
||||
'\b'
|
||||
'\r'
|
||||
'\"'
|
||||
'\''
|
||||
'\\'
|
||||
'\$'
|
||||
'<!ILLEGAL_ESCAPE!>\x<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\123<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\ra<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\000<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\000<!>'
|
||||
'\u0000'
|
||||
'\u000a'
|
||||
'\u000A'
|
||||
'<!ILLEGAL_ESCAPE!>\u<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\u0<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\u00<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\u000<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\u000z<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\\u000<!>'
|
||||
'<!ILLEGAL_ESCAPE!>\<!>'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user