| // FILE: test.kt |
| |
| enum class E { |
| X, |
| |
| Y { |
| fun foo() = 23 |
| }, |
| |
| Z() { |
| fun bar() = 42 |
| } |
| } |
| |
| fun box() { |
| E.X; |
| E.Y; |
| E.Z; |
| } |
| |
| // EXPECTATIONS JVM_IR |
| // test.kt:16 box |
| // test.kt:4 <clinit> |
| // test.kt:6 <clinit> |
| // test.kt:10 <clinit> |
| // test.kt:17 box |
| // test.kt:18 box |
| // test.kt:19 box |
| |
| // EXPECTATIONS NATIVE |
| // test.kt:16 box |
| // test.kt:3 $getEnumAt |
| // test.kt:13 $getEnumAt |
| // test.kt:16 box |
| // test.kt:17 box |
| // test.kt:3 $getEnumAt |
| // test.kt:13 $getEnumAt |
| // test.kt:17 box |
| // test.kt:18 box |
| // test.kt:3 $getEnumAt |
| // test.kt:13 $getEnumAt |
| // test.kt:19 box |
| |
| // EXPECTATIONS JS_IR |
| // test.kt:16 box |
| // test.kt:4 static_init_5 |
| // test.kt:3 <init> |
| // test.kt:6 static_init_5 |
| // test.kt:6 <init> |
| // test.kt:3 <init> |
| // test.kt:6 <init> |
| // test.kt:10 static_init_5 |
| // test.kt:10 <init> |
| // test.kt:3 <init> |
| // test.kt:10 <init> |
| // test.kt:17 box |
| // test.kt:18 box |
| // test.kt:19 box |
| |
| // EXPECTATIONS WASM |
| // test.kt:16 $box (6) |
| // test.kt:4 $static_init (4) |
| // test.kt:13 $E.<init> (1) |
| // test.kt:4 $static_init (4) |
| // test.kt:6 $static_init (4) |
| // test.kt:6 $Y.<init> (4) |
| // test.kt:13 $E.<init> (1) |
| // test.kt:6 $Y.<init> (4) |
| // test.kt:8 $Y.<init> (6) |
| // test.kt:6 $static_init (4) |
| // test.kt:10 $static_init (4) |
| // test.kt:10 $Z.<init> (4) |
| // test.kt:13 $E.<init> (1) |
| // test.kt:10 $Z.<init> (4) |
| // test.kt:12 $Z.<init> (5) |
| // test.kt:10 $static_init (4) |
| // test.kt:16 $box (6) |
| // test.kt:17 $box (6) |
| // test.kt:4 $static_init (4) |
| // test.kt:17 $box (6) |
| // test.kt:18 $box (6) |
| // test.kt:4 $static_init (4) |
| // test.kt:18 $box (6) |
| // test.kt:19 $box (1) |