mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
24 lines
357 B
Swift
24 lines
357 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
class C {
|
|
|
|
deinit {
|
|
print("boom! roasted")
|
|
}
|
|
}
|
|
|
|
class D : C {
|
|
|
|
deinit {
|
|
print("i can't decide between a fat joke and a dumb joke")
|
|
}
|
|
}
|
|
|
|
C()
|
|
// CHECK: boom! roasted
|
|
D()
|
|
// CHECK-NEXT: i can't decide between a fat joke and a dumb joke
|
|
// CHECK-NEXT: boom! roasted
|
|
|