Skip to content

Commit 35d6175

Browse files
authored
Merge pull request #68174 from hjyamauchi/arm64test
Split a test for windows aarch64 and have it pass
2 parents 2b6b3fd + d932d3b commit 35d6175

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: not %target-swift-frontend -typecheck -verify %s 2>&1 | %FileCheck %s
2+
// REQUIRES: OS=windows-msvc && CPU=aarch64
3+
4+
import vcruntime
5+
typealias JumpBuffer = _JBTYPE
6+
7+
func test_unavailable_returns_twice_function() {
8+
var x: JumpBuffer
9+
_ = _setjmp(&x)
10+
}
11+
12+
// CHECK: availability_returns_twice-msvc-aarch64.swift:{{[0-9]+}}:{{[0-9]+}}: error: unexpected error produced: cannot find type '_JBTYPE' in scope
13+
// CHECK-NEXT: typealias JumpBuffer = _JBTYPE
14+
// CHECK-NEXT: ^
15+
// CHECK-NEXT: setjmp.h:{{[0-9]+}}:{{[0-9]+}}: note: diagnostic produced elsewhere: macro '_JBTYPE' unavailable: structure not supported
16+
// CHECK-NEXT: #define _JBTYPE unsigned __int64
17+

test/ClangImporter/availability_returns_twice-msvc.swift renamed to test/ClangImporter/availability_returns_twice-msvc-x86_64.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %target-typecheck-verify-swift
2-
// REQUIRES: OS=windows-msvc
2+
// REQUIRES: OS=windows-msvc && CPU=x86_64
33

44
import vcruntime
55
typealias JumpBuffer = _JBTYPE

0 commit comments

Comments
 (0)