mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
18 lines
940 B
Swift
18 lines
940 B
Swift
// REQUIRES: no_asan
|
|
// UNSUPPORTED: OS=linux-android, OS=linux-androideabi, OS=wasip1
|
|
// RUN: %empty-directory(%t)
|
|
import _Differentiation
|
|
|
|
// RUN: %target-build-swift -Xfrontend -enable-anonymous-context-mangled-names %S/Inputs/AutoDiffTypes.swift -parse-as-library -emit-module -emit-library -module-name TypesToReflect -o %t/%target-library-name(TypesToReflect)
|
|
// RUN: %target-build-swift -Xfrontend -enable-anonymous-context-mangled-names %S/Inputs/AutoDiffTypes.swift %S/Inputs/main.swift -emit-module -emit-executable -module-name TypesToReflect -o %t/TypesToReflect
|
|
|
|
// RUN: %target-swift-reflection-dump %t/%target-library-name(TypesToReflect) | %FileCheck %s
|
|
// RUN: %target-swift-reflection-dump %t/TypesToReflect | %FileCheck %s
|
|
|
|
// CHECK: FIELDS:
|
|
// CHECK: =======
|
|
// CHECK: TypesToReflect.HasAutoDiffTypes
|
|
// CHECK: aFunction: @differentiable(reverse) (Swift.Float) -> Swift.Float
|
|
// CHECK: (function differentiable=reverse
|
|
|