Skip to content

Commit e5dd189

Browse files
committed
Include crashing test case
1 parent 1952739 commit e5dd189

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: --crash %target-swift-frontend %s -parse
2+
3+
// Distributed under the terms of the MIT license
4+
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
5+
6+
struct S<T> {
7+
init(f: AutoreleasingUnsafeMutablePointer<T?> -> ()) {
8+
var t: T?
9+
f(&t)
10+
}
11+
}
12+

0 commit comments

Comments
 (0)