Files
swift-mirror/test/Interpreter/destructors.swift
Joe Groff 637c4e8171 Fold Interpreter and Interpreter/SIL tests.
There is only SIL. No reason to keep a subdirectory around.

Swift SVN r6029
2013-07-05 23:11:44 +00:00

23 lines
346 B
Swift

// RUN: %swift -i %s | FileCheck %s
class C {
constructor() {}
destructor {
println("boom! roasted")
}
}
class D : C {
destructor {
println("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