Files
swift-mirror/test/IRGen/local_extern.swift
3405691582 93d4854c34 [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.
2020-09-05 13:59:06 -04:00

11 lines
397 B
Swift

// 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 {{(dso_local )?}}i32 @func
// CHECK: define internal i32 @prior_func
print("\(_no_prior_var())")
print("\(_no_prior_func())")
print("\(_prior_var())")
print("\(_prior_func())")