AA: showcase strange const evaluation for -1

This commit is contained in:
Jinseong Jeon
2022-04-20 22:30:16 -07:00
committed by Ilya Kirillov
parent 249dc1e1d2
commit faf6939515
9 changed files with 83 additions and 0 deletions
@@ -0,0 +1,4 @@
annotation class Annotation(vararg val values: Int)
@Annotation(<expr>-1</expr>)
class C
@@ -0,0 +1,9 @@
expression: -1
CONSTANT_EXPRESSION_EVALUATION
constant: -1
constantValueKind: Int
CONSTANT_LIKE_EXPRESSION_EVALUATION
constantLike: -1
constantLikeValueKind: Int
@@ -0,0 +1,9 @@
expression: 1
CONSTANT_EXPRESSION_EVALUATION
constant: 1
constantValueKind: Int
CONSTANT_LIKE_EXPRESSION_EVALUATION
constantLike: 1
constantLikeValueKind: Int
@@ -0,0 +1,4 @@
annotation class Annotation(vararg val values: Int)
@Annotation(-<expr>1</expr>)
class C
@@ -0,0 +1,9 @@
expression: 1
CONSTANT_EXPRESSION_EVALUATION
constant: -1
constantValueKind: Int
CONSTANT_LIKE_EXPRESSION_EVALUATION
constantLike: -1
constantLikeValueKind: Int