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.
2 parents f84c46d + 62c0a33 commit fae5d2cCopy full SHA for fae5d2c
test/Interop/Cxx/objc-correctness/Inputs/id.h
@@ -0,0 +1,7 @@
1
+#import <Foundation/Foundation.h>
2
+
3
+struct HasIdMember {
4
+ id i;
5
+};
6
7
+HasIdMember getHasIdMember();
test/Interop/Cxx/objc-correctness/Inputs/module.modulemap
@@ -38,3 +38,9 @@ module NSTextCheckingResult {
38
module MockPOSIX {
39
header "POSIX.h"
40
}
41
42
+module ID {
43
+ header "id.h"
44
+ requires objc
45
+ requires cplusplus
46
+}
test/Interop/Cxx/objc-correctness/id-irgen.swift
+// RUN: %target-swift-emit-ir -I %S/Inputs -cxx-interoperability-mode=default %s
+// REQUIRES: objc_interop
+import ID
+let v = getHasIdMember()
0 commit comments