Files
swift-mirror/test/attr/ApplicationMain/attr_main_implicitDynamicReplacement.swift
Nate Chandler 4b8747ef49 [Sema] Made $main non-dynamic.
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
2021-11-29 13:52:55 -08:00

7 lines
134 B
Swift

// RUN: %target-swift-frontend -c -parse-as-library %s -enable-implicit-dynamic
@main
struct BasicAppApp {
static func main() {}
}