mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously, it was possible for $main to be made dynamic by passing -enable-implicit-dynamic. That has always been a problem in asserts builds because a direct function_ref to $main is created in the main function. More recently, it has become a problem in non-asserts builds because the dynamic replacements are now in the IR module but are not in the TBD file. Here, the function is marked as not dynamic. rdar://84962693
7 lines
134 B
Swift
7 lines
134 B
Swift
// RUN: %target-swift-frontend -c -parse-as-library %s -enable-implicit-dynamic
|
|
|
|
@main
|
|
struct BasicAppApp {
|
|
static func main() {}
|
|
}
|