Skip to content

Commit c446b1e

Browse files
authored
Merge pull request #21373 from compnerd/what-are-your-best-attributes
attr: fix test on Windows
2 parents 9b95557 + 5ed2d75 commit c446b1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/attr/attr_cdecl.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ var computed: Int {
1818

1919
struct SwiftStruct { var x, y: Int }
2020
enum SwiftEnum { case A, B }
21+
#if os(Windows) && arch(x86_64)
22+
@objc enum CEnum: Int32 { case A, B }
23+
#else
2124
@objc enum CEnum: Int { case A, B }
25+
#endif
2226

2327
@_cdecl("swiftStruct")
2428
func swiftStruct(x: SwiftStruct) {} // expected-error{{cannot be represented}} expected-note{{Swift struct}}

0 commit comments

Comments
 (0)