Skip to content

Commit 785f79a

Browse files
[test] Add negative test for crash related to ClangTypeConverter.
1 parent 785b182 commit 785f79a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ClangImporter/blocks_returning_bool.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-silgen %s -I %S/Inputs/ | %FileCheck %s
22

3+
// Check that bridging an @convention(c)'s function's @convention(block)
4+
// parameter to a Swift function type doesn't crash the compiler.
5+
// RUN: not --crash %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-silgen %s -I %S/Inputs/ -o /dev/null -use-clang-function-types -experimental-print-full-convention
6+
37
// REQUIRES: objc_interop
48

59
import Foundation

0 commit comments

Comments
 (0)