Skip to content

Commit 56e4de8

Browse files
asuhandan-zheng
authored andcommitted
Require asserts for AD tests using the debug-only flag (#27824)
1 parent 3e45b91 commit 56e4de8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

test/AutoDiff/control_flow_sil.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-frontend -emit-sil -verify -Xllvm -debug-only=differentiation 2>&1 %s | %FileCheck %s -check-prefix=CHECK-DATA-STRUCTURES
22
// RUN: %target-swift-frontend -emit-sil -verify -Xllvm -sil-print-after=differentiation -o /dev/null 2>&1 %s | %FileCheck %s -check-prefix=CHECK-SIL
3+
// REQUIRES: asserts
34

45
// TODO: Add FileCheck tests.
56

test/AutoDiff/forward_mode_sil.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-frontend -emit-sil -verify -Xllvm -run-jvp-generation -Xllvm -debug-only=differentiation %s 2>&1 | %FileCheck %s -check-prefix=CHECK-DATA-STRUCTURES
22
// RUN: %target-swift-frontend -emit-sil -verify -Xllvm -sil-print-after=differentiation -Xllvm -run-jvp-generation -o /dev/null 2>&1 %s | %FileCheck %s -check-prefix=CHECK-SIL
3+
// REQUIRES: asserts
34

45

56
//===----------------------------------------------------------------------===//

test/AutoDiff/refcounting.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-frontend -emit-sil -Xllvm -debug-only=differentiation 2>&1 %s | %FileCheck %s -check-prefix=CHECK-DATA-STRUCTURES
22
// RUN: %target-swift-frontend -emit-sil -Xllvm -differentiation-skip-folding-differentiable-function-extraction %s | %FileCheck %s
3+
// REQUIRES: asserts
34

45
public class NonTrivialStuff : Equatable {
56
public init() {}

0 commit comments

Comments
 (0)