Dmitriy Novozhilov
5c632bc78e
[FIR2IR] Don't create f/o symbols on smartcasted Nothing in dispatch receiver
...
^KT-63525 Fixed
2024-02-28 08:28:14 +00:00
Marco Pennekamp
708ed81eb2
[Test] Avoid importing unused @Nested annotations in generated tests
...
- Unused `Nested` imports frequently cause unused import warnings in the
IDE, which are especially annoying in after-commit warning/error
analysis.
2024-02-27 20:30:06 +00:00
Alexander Shabalin
0882d1752d
[K/N][tests] Fix path-separator handling ^KT-65977
2024-02-27 13:20:50 +00:00
Alexander Shabalin
c491858a49
[K/N][tests] Add EnforcedHostTarget to atomicfu tests ^KT-65977
2024-02-27 13:20:50 +00:00
Mikhail Glukhikh
678816f9e8
K1: introduce BUILDER_INFERENCE_STUB_PARAMETER_TYPE to prevent compiler crashes
...
This diagnostic is reported in rare situations when
StubTypeForBuilderInference is kept as a parameter type
of for loop or lambda. Before this commit, we had in K1
"Could not load module <error module>" from IrLinker instead.
Related to: KT-52757, KT-53109, KT-63841, KT-64066
#KT-53478 Fixed
2024-02-27 10:25:13 +00:00
Artem Olkov
f493df42a9
[Swift Export] fix swift export full test by adding missing runtime modulemap
...
Merge-request: KT-MR-14627
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2024-02-27 08:15:12 +00:00
Artem Olkov
e4acb396ba
Add SIR builder and printer for classes #KT-65905 fixed
...
Merge-request: KT-MR-14478
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2024-02-26 14:30:07 +00:00
Vladimir Sukharev
febac0dd5f
[Tests] Migrate backend-independent tests from native to compiler/testData.
...
^KT-65979
2024-02-26 13:38:49 +00:00
Artem Olkov
dd9332d9e1
Add kotlin runtime modulemap for swift export as part of kotlin-native dist #KT-65673 fixed
...
Co-authored-by: Alexander Shabalin <alexander.shabalin@ashabalin.me >
Merge-request: KT-MR-14493
Merged-by: Artem Olkov <artem.olkov@jetbrains.com >
2024-02-26 12:51:57 +00:00
Abduqodiri Qurbonzoda
7978f63d37
Set AV to 2.0 in K/N StdlibTest
2024-02-26 10:48:29 +00:00
Dmitriy Novozhilov
9857bdc891
[FIR2IR] Unwrap typealiases during applying of suspend conversion
...
^KT-65002 Fixed
2024-02-26 08:56:24 +00:00
Pavel Kunyavskiy
c991535756
[IRFakeOverrides] Fix accessors visibilities
...
^KT-65801
2024-02-23 16:35:27 +00:00
Vladimir Sukharev
425381ddf9
[K/N][Tests] Improve test UX for wrong combination of OPT and CACHE modes
2024-02-23 15:06:16 +00:00
Vladimir Sukharev
947b825d77
[K/N][Tests] Ignore test kt56402 with caches
...
^KT-66032
2024-02-22 22:41:37 +00:00
Vladimir Sukharev
ecdf97c6b7
[K/N][Tests] Adjust test smoke.kt to improved fake override engine
...
^KT-61323
2024-02-22 22:41:37 +00:00
Vladimir Sukharev
98c3147d19
[K/N][Tests] Fix ComplexCInteropTest.kt to respect 2-stage compilation
...
^KT-66014
2024-02-22 22:41:37 +00:00
Alexander Shabalin
dc4f12f29c
Revert "[K/N][Tests] Migrate driver test llvm_variant_dev"
...
This reverts commit d8a90f55a8 .
2024-02-22 14:56:13 +00:00
Alexander Shabalin
4765cfda53
Revert "[K/N][Tests] Migrate test override_konan_properties0"
...
This reverts commit 9ef051dbc5 .
2024-02-22 14:56:13 +00:00
Alexander Shabalin
8518c3f54f
Revert "[K/N][Tests] Migrate test override_konan_properties0 and add testDriverVersion"
...
This reverts commit fbe8db4b45 .
2024-02-22 14:56:13 +00:00
Alexander Shabalin
876be8f17a
Revert "[K/N][Tests] Ignore KonanDriverTest tests on MinGW/opt.debug/cache.no"
...
This reverts commit 313b230333 .
2024-02-22 14:56:13 +00:00
Dmitriy Dolovov
7fe0de897b
[KLIB tool] Update missing test data in Kotlin/Native C-interop tests
...
^KT-62340
2024-02-21 21:21:31 +00:00
Vladimir Sukharev
bd7ffc71aa
[K/N][Tests] Migrate test kt62262.kt
...
^KT-61259
2024-02-20 21:10:33 +00:00
Vladimir Sukharev
3d70be0c5f
[K/N][Tests] Migrate test kt40426
...
^KT-61259
2024-02-20 18:56:54 +00:00
Sergey Bogolepov
8ae6e98295
[Native][Tests] Adapt CExport tests to generator changes
2024-02-20 15:23:22 +00:00
Sergey Bogolepov
4f9c1860b1
[Native][Tests] Add tests for -Xbinary=cInterfaceMode=none
2024-02-20 15:23:22 +00:00
Sergey Bogolepov
dd25130464
[Native][Tests] Move existing CExport tests under the InterfaceV1 dir
...
To avoid collisions with the future InterfaceNone tests
2024-02-20 15:23:22 +00:00
Sergey Bogolepov
06c0977408
[Native][Tests] Refactor CExport tests for future changes
...
1. Unify BinaryLibraryKind type and move it to TestSettings
2. Pass it via ClassSettings instead of constructor parameters.
3. Update GenerateNativeTests.kt to generate CExport tests as a matrix.
2024-02-20 15:23:22 +00:00
Vladimir Sukharev
313b230333
[K/N][Tests] Ignore KonanDriverTest tests on MinGW/opt.debug/cache.no
...
^KT-61259
2024-02-20 12:56:58 +00:00
Vladimir Sukharev
223277f106
Revert "[K/N][Tests] Fix passing of -Xbinary options under MinGW"
...
This reverts commit ba217ad688 .
2024-02-20 12:56:58 +00:00
Kirill Rakhman
634f0c2ae7
[FIR2IR] Unwrap named arguments for suspend conversion
...
#KT-65878 Fixed
2024-02-20 12:52:08 +00:00
Dmitriy Dolovov
a2a217799b
[KLIB tool] Update KLIB metadata signature dump tests
...
^KT-62340
2024-02-20 11:52:26 +00:00
Dmitriy Novozhilov
3469e3b198
[FIR2IR] Create delegated field for delegation to var property
...
^KT-65920 Fixed
2024-02-20 09:46:17 +00:00
Johan Bay
446db595ce
[K/N] keep internal members in header klibs
...
This is also the behavior of jvm-abi-gen and desired to support
friend modules.
^KT-65442
2024-02-20 08:03:07 +00:00
Vladimir Sukharev
2b2c685827
[K/N][Tests] Migrate dylib-interop-exe tests
...
^KT-61259
2024-02-19 18:44:08 +00:00
Vladimir Sukharev
ba217ad688
[K/N][Tests] Fix passing of -Xbinary options under MinGW
...
^KT-61259
2024-02-19 17:42:34 +00:00
Alexander Shabalin
60bf15d654
[K/N][tests] all users of nativeTest() require executors
2024-02-19 13:53:05 +00:00
Dmitriy Dolovov
1c3633c9f2
[Native][tests] Use new KLIB tool entry point for running tests
...
^KT-62340
2024-02-19 09:36:10 +00:00
Anastasia.Nekrasova
fd4f6c90c7
[K/N][K2] K2 behavioral difference with inconsistent inheritance of ObjCName
...
Support for complex cases with multiple substitution overrides.
#KT-64276 Fixed
2024-02-19 09:29:43 +00:00
Anastasia.Nekrasova
d69240a2d5
[FIR] Fixed behavior of FirAnnotation.findArgumentByName for resolved annotations
...
The 'findArgumentByName' function was returning an invalid result for
annotation arguments with omitted argument name.
#KT-64276
2024-02-19 09:29:43 +00:00
Anastasia.Nekrasova
bb8c7dd04c
[K/N][K2] K2 behavioral difference with inconsistent inheritance of ObjCName
...
When a declaration with an ObjC annotation is stored in a different
module, the annotation arguments are not resolved by default. This leads
to a bug in the checker. Before attempting to find the objCName, it is
necessary to resolve the annotation first.
#KT-64276
2024-02-19 09:29:43 +00:00
Mark Mann
00ef313df2
[K/N] Add binary option to produce error on mangled objc names ( #5264 )
...
objcExportErrorOnNameCollisions=true binary option makes the compiler
emit an error whenever it mangles a name emitted by ObjCExport.
^KT-65863 Fixed
2024-02-16 18:17:30 +00:00
Dmitriy Novozhilov
acf2296590
[Test] Regenerate tests after two previous commits
2024-02-16 12:48:24 +00:00
Pavel Punegov
42cba927e6
[K/N][test] Infra: implement race-free way to separate test cases
...
With shared test running test cases that may fail or timeout should
be excluded from shared run and executed separately.
This is done by getting all test cases for the current executable and
putting them to the map that is checked for all TestRuns
2024-02-15 18:07:25 +00:00
Pavel Punegov
07422d4feb
[K/N][test] Implement shared test execution of TestCases
...
Added the ability to execute multiple tests once and share the results.
With Test runner turned on tests are being compiled into the single
executable. Then they executed each one separately using --ktest_*
options. This commit makes test run executable once and the result goes
to the result handler.
2024-02-15 18:07:25 +00:00
Dmitriy Dolovov
ab814e1600
[KLIB tool] Update Kotlin/Native C-interop tests
...
^KT-62340
2024-02-15 15:38:27 +00:00
Dmitriy Dolovov
07767f88e2
[KLIB tool] Update KLIB metadata dump tests
...
^KT-62340
2024-02-15 15:38:27 +00:00
Dmitriy Novozhilov
84f0f6e099
[FIR] Resolve statuses of supertypes for all non-source classes
...
Previously we forced computation only for java and precompiled classes,
assuming, that binary class can not extend source class, but it's not
true in two cases:
1. Classpath substitution: class with same name declared in library and
the source (more rare case)
2. Metadata compilation: depends-on dependcies are passed in binary
format, so `expect class` may be a binary one and corresponding
`actual class` may be a source. So if some class in `common` module
extend this expect class, actual class will be substituted instead of it
^KT-65669 Fixed
2024-02-15 12:18:48 +00:00
Dmitriy Dolovov
9219a8f485
[FIR] Expand type of vararg parameter before constructing array type
...
This helps to have a primitive array instead of an array of primitives
as the type of vararg value parameter. Also, this prevents
ABI-incompatibility with the libraries (KLIBs) compiled with K1.
^KT-65588
2024-02-15 11:55:32 +00:00
Vladimir Sukharev
20f6b0cb0c
[K/N][Tests] Migrate test ir_providers_mismatch
...
^KT-61259
2024-02-15 10:13:56 +00:00
Kirill Rakhman
802366064d
[FIR] Expand annotation types in annotation serialization
...
#KT-65659 Fixed
2024-02-15 08:27:44 +00:00