Commit Graph

12 Commits

Author SHA1 Message Date
Arnold Schwaighofer
79894ff461 Fix test/Interop with opaque pointers 2023-07-03 03:36:07 -07:00
Arnold Schwaighofer
c1a93e0bde Move tests over to use the %use_no_opaque_pointers option 2023-06-14 10:49:48 -07:00
swift-ci
13a36d72e5 Merge remote-tracking branch 'origin/main' into rebranch 2022-07-21 12:53:48 -07:00
Ehud Adler
0f83b65f9b [cxx-interop] Remove impl for constexpr members (#60154)
* Remove impl for constexpr members

* Readd some tets

* Only remove import of static constexpr
2022-07-21 15:41:17 -04:00
Ben Barham
e382e15f6a [next] Generalise interop tests that only care about name and types
Due to a now default-enabled `undef` pass (llvm/llvm-project
1b1c8d83d3567a60280291c0adb95d1d60335509), a whole bunch of interop
IRGen tests are failing due to missing `undefs`, even though they don't
matter in these tests at all. Add regex matches so that these tests just
check for the name and types of the functions they care about.
2022-05-13 14:39:26 -07:00
zoecarver
839839f924 [cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00
Arnold Schwaighofer
ee6441c4d2 Fix test/Interop/Cxx 2021-08-05 12:15:23 -07:00
Nate Chandler
cd50402b3d Merge branch 'main' into next
Conflicts:
	include/swift/Basic/AnyValue.h
2021-01-12 15:34:11 -08:00
zoecarver
6bc2696e24 [cxx-interop] Inline constexpr vars.
If a static variable can be evaluated at compile time, create an
accessor using that value. This means static variables will always be
inlined and removed.

Note: currently this only works with numeric types.
2021-01-08 14:22:25 -08:00
zoecarver
549189bee6 [cxx-interop] Add "nonnull" and "dereferenceable(n)" attributes to constructor params.
This reflects a change in Clang 13's codegen. Test-only fix for swift/rebranch.
2021-01-07 15:00:34 -08:00
Marcel Hlopko
93b92b4192 Fix static-var test for arm/ios 2020-05-04 20:54:28 +02:00
Marcel Hlopko
6e50c91b37 [CxxInterop] Add tests for static vars
[SR-12464](https://bugs.swift.org/browse/SR-12464)
2020-04-29 10:19:37 +02:00