Skip to content

Commit 93d4854

Browse files
committed
[test][IRGen] Maybe Windows needs dso_local.
In swiftlang#33816, we forked the local_extern test omitting the check for the extern function, because it wasn't obvious what the match was. It might actually just be missing the dso_local annotation again for the function. Let's try that.
1 parent c6a266e commit 93d4854

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

test/IRGen/local_extern.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// XFAIL: OS=windows-msvc
21
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/local_extern.h %s -emit-ir | %FileCheck %s
32
// CHECK: @var = external {{(dso_local )?}}global i32
43
// CHECK: @prior_var = internal global i32
5-
// CHECK: declare i32 @func
4+
// CHECK: declare {{(dso_local )?}}i32 @func
65
// CHECK: define internal i32 @prior_func
76

87
print("\(_no_prior_var())")

test/IRGen/local_extern_windows.swift

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)