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 b0bb19c commit 7abb94aCopy full SHA for 7abb94a
validation-test/SILOptimizer/Inputs/issue-78447-c.h
@@ -0,0 +1,3 @@
1
+typedef struct _xmlNs {
2
+ const char *prefix;
3
+} *xmlNsPtr;
validation-test/SILOptimizer/Inputs/module.modulemap
+module Issue_78447_C {
+ header "issue-78447-c.h"
+}
validation-test/SILOptimizer/issue-78447.swift
@@ -0,0 +1,20 @@
+// RUN: %target-build-swift %s -I %S/Inputs
+
+import Issue_78447_C
4
5
+func foo<T> (ptr: UnsafePointer<T>?) -> String? {
6
+ return nil
7
8
9
+class A {
10
+ internal let ptr: xmlNsPtr
11
+ internal init(ptr: xmlNsPtr) {
12
+ self.ptr = ptr
13
+ }
14
15
16
+class B : A {
17
+ func bar() -> String? {
18
+ return foo(ptr: ptr.pointee.prefix)
19
20
0 commit comments