mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Introduce stored inlinable function bodies * Remove serialization changes * [InterfaceGen] Print inlinable function bodies * Clean up a little bit and add test * Undo changes to InlinableText * Add serialization and deserialization for inlinable body text * Allow parser to parse accessor bodies in interfaces * Fix some tests * Fix remaining tests * Add tests for usableFromInline decls * Add comments * Clean up function body printing throughout * Add tests for subscripts * Remove comment about subscript inlinable text * Address some comments * Handle lack of @objc on Linux
17 lines
619 B
Swift
17 lines
619 B
Swift
// RUN: %target-swift-frontend -emit-interface-path %t.swiftinterface -enable-resilience -emit-module -o /dev/null %s
|
|
// RUN: %FileCheck %s < %t.swiftinterface
|
|
|
|
// CHECK: @_transparent public func glass() -> Int { return 0 }{{$}}
|
|
@_transparent public func glass() -> Int { return 0 }
|
|
|
|
// CHECK: @_effects(readnone) public func illiterate(){{$}}
|
|
@_effects(readnone) public func illiterate() {}
|
|
|
|
// CHECK-LABEL: @_fixed_layout public struct Point {
|
|
@_fixed_layout public struct Point {
|
|
// CHECK-NEXT: public var x: Int
|
|
public var x: Int
|
|
// CHECK-NEXT: public var y: Int
|
|
public var y: Int
|
|
} // CHECK-NEXT: {{^}$}}
|