Skip to content

Commit d55ca8a

Browse files
committed
Disable SILGen/discard.swift on Windows.
The -Onone passes fail to remove struct_extract, so the CHECK lines will fail.
1 parent e3fa77e commit d55ca8a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/SILGen/discard.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
// RUN: %target-swift-emit-silgen -enable-experimental-feature MoveOnlyEnumDeinits -module-name test %s | %FileCheck %s --enable-var-scope
22
// RUN: %target-swift-emit-sil -enable-experimental-feature MoveOnlyEnumDeinits -module-name test -sil-verify-all %s | %FileCheck %s --check-prefix CHECK-SIL --enable-var-scope
33

4+
// UNSUPPORTED: OS=windows-msvc
5+
//
6+
// On Windows, the struct_extract instructions are not fully cleaned up:
7+
// CHECK-SIL-NOT: struct_extract
8+
// It likely has to do with the lazy property.
9+
410
func invokedDeinit() {}
511

612
@_moveOnly enum MaybeFile {

0 commit comments

Comments
 (0)