mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This option is no longer necessary, because we emit weak definitions for any imported modules. Fixes rdar://158364032.
15 lines
540 B
Swift
15 lines
540 B
Swift
// RUN: %target-swift-frontend %s -module-name Application -parse-as-library -entry-point-function-name Application_main -enable-experimental-feature Embedded -emit-ir | %FileCheck %s
|
|
// RUN: %target-swift-frontend %s -module-name Application -parse-as-library -entry-point-function-name Application_main -O -enable-experimental-feature Embedded -emit-ir | %FileCheck %s
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
@main
|
|
struct Main {
|
|
static func main() {
|
|
print("hello")
|
|
}
|
|
}
|
|
|
|
// CHECK: @Application_main
|