Skip to content

Commit 2d1436e

Browse files
author
Marc Rasi
committed
fix SR-12526 test
1 parent 78ac5eb commit 2d1436e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/AutoDiff/Sema/DerivativeRegistrationCrossModule/Inputs/a.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
public struct Struct {
2+
public init() {}
23
public func method(_ x: Float) -> Float { x }
3-
44
public static func +(_ lhs: Self, rhs: Self) -> Self {
55
lhs
66
}

test/AutoDiff/Sema/DerivativeRegistrationCrossModule/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend -emit-module -primary-file %S/Inputs/a.swift -emit-module-path %t/a.swiftmodule
33
// RUN: %target-swift-frontend -emit-module -primary-file %S/Inputs/b.swift -emit-module-path %t/b.swiftmodule -I %t
4-
// RUN: not --crash %target-swift-frontend-typecheck -verify -I %t %s
4+
// RUN: %target-swift-frontend-typecheck -verify -I %t %s
55

66
// SR-12526: Fix cross-module deserialization crash involving `@derivative` attribute.
77

0 commit comments

Comments
 (0)