mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
407 B
Swift
22 lines
407 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: OS=macosx || OS=linux-gnu
|
|
|
|
class MyClass {
|
|
init() {
|
|
Self.static_foo()
|
|
}
|
|
|
|
static func static_foo() {}
|
|
}
|
|
|
|
@main
|
|
struct Main {
|
|
static func main() {
|
|
_ = MyClass()
|
|
}
|
|
}
|
|
|
|
// CHECK: define {{.*}}@main(
|