Files
swift-mirror/validation-test/stdlib/AssertDiagnosticsSIL.swift
2019-04-24 10:04:20 -07:00

8 lines
210 B
Swift

// RUN: %target-swift-frontend %s -emit-sil -verify
func assertionFailure_isNotNoreturn() -> Int {
_ = 0
assertionFailure("")
} // expected-error {{missing return in a function expected to return 'Int'}}