We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a02586f commit 85a4f18Copy full SHA for 85a4f18
test/embedded/cxxshim.swift
@@ -0,0 +1,27 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: %{python} %utils/split_file.py -o %t %s
3
+
4
+// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading
5
6
+// BEGIN header.h
7
8
+// C++
9
+struct Base { int field; };
10
+struct Derived : Base {};
11
12
+// BEGIN module.modulemap
13
14
+module MyModule {
15
+ header "header.h"
16
+}
17
18
+// BEGIN Main.swift
19
20
+import MyModule
21
22
+public func foo() {
23
+ var d = Derived()
24
+ d.field = 123
25
26
27
+foo()
0 commit comments