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.
@_exported import _Differentiation
1 parent 9d4ea56 commit 172d57fCopy full SHA for 172d57f
test/AutoDiff/Sema/ExportedDifferentiationModule/Inputs/exports_differentiation.swift
@@ -0,0 +1 @@
1
+@_exported import _Differentiation
test/AutoDiff/Sema/ExportedDifferentiationModule/main.swift
@@ -0,0 +1,11 @@
+// RUN: %empty-directory(%t)
2
+// RUN: %target-swift-frontend -emit-module %S/Inputs/exports_differentiation.swift -o %t/exports_differentiation.swiftmodule
3
+// RUN: %target-build-swift %s -I %t
4
+
5
+// Test whether importing a module with `@_exported import _Differentiation`
6
+// enables differentiable programming. This behavior is desirable.
7
8
+import exports_differentiation
9
10
+@differentiable
11
+func id<T: Differentiable>(_ x: T) -> T { x }
0 commit comments