Skip to content

Commit 0d926e6

Browse files
authored
Merge pull request #69112 from tshortli/windows-reenable-skip-function-bodies-clang-enum-init-raw-value
Tests: Fix skip-function-bodies-clang-enum-init-raw-value.swift on Windows
2 parents fad02e3 + 2150ff6 commit 0d926e6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

test/SILGen/Inputs/open_enum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
typedef enum __attribute__((enum_extensibility(open))) YesOrNo {
2+
typedef enum __attribute__((enum_extensibility(open))) YesOrNo : int {
33
Yes,
44
No,
55
} YesOrNo;

test/SILGen/skip-function-bodies-clang-enum-init-raw-value.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// RUN: %target-swift-frontend -emit-silgen %s -import-objc-header %S/Inputs/open_enum.h -experimental-skip-non-inlinable-function-bodies-without-types | %FileCheck %s
44
// RUN: %target-swift-frontend -emit-silgen %s -import-objc-header %S/Inputs/open_enum.h -debug-forbid-typecheck-prefix SKIP_ALL_NO_TYPECHECK -experimental-skip-all-function-bodies | %FileCheck %s --check-prefix=CHECK-SKIP-ALL
55

6-
// Imported clang enums have different signedness when building for Windows.
7-
// UNSUPPORTED: OS=windows-msvc
8-
96
// CHECK-SKIP-ALL-NOT: s4main13inlinableFuncSo7YesOrNoVyF
107

118
// CHECK: sil [serialized]{{.*}} @$s4main13inlinableFuncSo7YesOrNoVyF : $@convention(thin) () -> YesOrNo {
@@ -17,8 +14,8 @@
1714
return YesOrNo(rawValue: 1)!
1815
}
1916

20-
// CHECK-SKIP-ALL-NOT: sSo7YesOrNoV8rawValueABSgs6UInt32V_tcfC
17+
// CHECK-SKIP-ALL-NOT: sSo7YesOrNoV8rawValueABSgs5Int32V_tcfC
2118

22-
// CHECK: sil shared [serialized]{{.*}} @$sSo7YesOrNoV8rawValueABSgs6UInt32V_tcfC : $@convention(method) (UInt32, @thin YesOrNo.Type) -> Optional<YesOrNo> {
19+
// CHECK: sil shared [serialized]{{.*}} @$sSo7YesOrNoV8rawValueABSgs5Int32V_tcfC : $@convention(method) (Int32, @thin YesOrNo.Type) -> Optional<YesOrNo> {
2320
// CHECK: return {{%.*}} : $Optional<YesOrNo>
24-
// CHECK: } // end sil function '$sSo7YesOrNoV8rawValueABSgs6UInt32V_tcfC'
21+
// CHECK: } // end sil function '$sSo7YesOrNoV8rawValueABSgs5Int32V_tcfC'

0 commit comments

Comments
 (0)