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

24 lines
317 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// REQUIRES: executable_test
class HeapBuf<Element> {}
struct XBuffer {
var _storage: HeapBuf<()>
}
class Q {}
func hexAddr(x: AnyObject) -> Q {
return Q()
}
func crash() {
hexAddr(XBuffer(_storage: HeapBuf<()>())._storage)
}
crash()
// CHECK: ok
print("ok")