Files
swift-mirror/validation-test/stdlib/AssertDiagnosticsSIL.swift
Dmitri Hrybenko 1048d5703b Add a test for assertionFailure not being @noreturn
It is a no-op in -O.

Swift SVN r25920
2015-03-10 07:25:50 +00:00

7 lines
202 B
Swift

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