Files
codeql/java/ql/test-kotlin2/library-tests/dataflow/foreach/test.expected
Anders Fugmann 1778b15936 kotlin tests: sync dataflow/foreach test inputs and K2 expected output
Copy K1's richer C2.kt (which includes test2, test3 and l.get(0) in test)
into test-kotlin2. K2 in -language 2.0 mode already tracks dataflow through
array.set() and indirect wrapper calls, so the additional tests produce results
identical to K1.

The expected files for test-kotlin1 and test-kotlin2 are now byte-identical for
this test.

Verified:
- test-kotlin1 (kotlinc 2.3.20 / -language 1.9): all tests pass
- test-kotlin2 (kotlinc 2.4.0 / -language 2.0): all tests pass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-10 19:58:27 +02:00

16 lines
861 B
Plaintext

| C1.java:10:44:10:46 | "a" | C1.java:11:17:11:17 | l |
| C1.java:10:44:10:46 | "a" | C1.java:12:17:12:20 | ...[...] |
| C1.java:10:44:10:46 | "a" | C1.java:15:20:15:23 | ...[...] |
| C1.java:10:44:10:46 | "a" | C1.java:19:20:19:20 | s |
| C2.kt:8:31:8:33 | "a" | C2.kt:9:14:9:14 | l |
| C2.kt:8:31:8:33 | "a" | C2.kt:10:14:10:17 | ...[...] |
| C2.kt:8:31:8:33 | "a" | C2.kt:11:14:11:21 | get(...) |
| C2.kt:8:31:8:33 | "a" | C2.kt:13:18:13:21 | ...[...] |
| C2.kt:8:31:8:33 | "a" | C2.kt:16:18:16:18 | s |
| C2.kt:23:23:23:25 | "a" | C2.kt:25:14:25:18 | ...[...] |
| C2.kt:23:23:23:25 | "a" | C2.kt:27:14:27:22 | get(...) |
| C2.kt:24:25:24:27 | "a" | C2.kt:26:14:26:18 | ...[...] |
| C2.kt:24:25:24:27 | "a" | C2.kt:28:14:28:22 | get(...) |
| C2.kt:36:29:36:31 | "a" | C2.kt:37:14:37:17 | ...[...] |
| C2.kt:36:29:36:31 | "a" | C2.kt:38:14:38:21 | get(...) |