Files
swift-mirror/test/expr/print/discard.swift
2024-07-23 11:05:33 -07:00

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: }