mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
275 B
Swift
15 lines
275 B
Swift
// RUN: %target-swift-frontend -print-ast %s 2>&1 | %FileCheck %s
|
|
|
|
struct S: ~Copyable {
|
|
consuming func c() {
|
|
discard self
|
|
}
|
|
|
|
deinit {}
|
|
}
|
|
|
|
// CHECK: internal struct S : ~Copyable {
|
|
// CHECK: internal consuming func c() {
|
|
// CHECK: discard self
|
|
// CHECK: }
|