Files
swift-mirror/test/Interpreter/destructors.swift
Arnold Schwaighofer 859fbc0162 More executable_test for the test directory
Swift SVN r29280
2015-06-03 23:28:51 +00:00

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