mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
11 lines
397 B
Swift
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())")
|