mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
416 B
Swift
22 lines
416 B
Swift
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -parse-as-library -module-name main | %FileCheck %s
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
class MyClass {
|
|
init() {
|
|
Self.static_foo()
|
|
}
|
|
|
|
static func static_foo() {}
|
|
}
|
|
|
|
@main
|
|
struct Main {
|
|
static func main() {
|
|
_ = MyClass()
|
|
}
|
|
}
|
|
|
|
// CHECK: define {{.*}}@{{_*}}main{{.*}}(
|