[test][IRGen] Maybe Windows needs dso_local.

In #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.
This commit is contained in:
3405691582
2020-09-05 13:59:06 -04:00
parent c6a266ef62
commit 93d4854c34
2 changed files with 1 additions and 12 deletions

View File

@@ -1,8 +1,7 @@
// XFAIL: OS=windows-msvc
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/local_extern.h %s -emit-ir | %FileCheck %s
// CHECK: @var = external {{(dso_local )?}}global i32
// CHECK: @prior_var = internal global i32
// CHECK: declare i32 @func
// CHECK: declare {{(dso_local )?}}i32 @func
// CHECK: define internal i32 @prior_func
print("\(_no_prior_var())")

View File

@@ -1,10 +0,0 @@
// REQUIRES: OS=windows-msvc
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/local_extern.h %s -emit-ir | %FileCheck %s
// CHECK: @var = external {{(dso_local )?}}global i32
// CHECK: @prior_var = internal global i32
// CHECK: define internal i32 @prior_func
print("\(_no_prior_var())")
print("\(_no_prior_func())")
print("\(_prior_var())")
print("\(_prior_func())")