Files
swift-mirror/test/SILGen/availability_disabled.swift
Joe Groff 18bd2f7526 SILGen: Don't crash when compiling if #available with -disable-availability-checking.
This isn't an officially supported configuration, but is useful for testing and runtime development,
and we shouldn't crash.
2021-04-09 14:41:09 -07:00

6 lines
129 B
Swift

// RUN: %target-swift-emit-silgen -disable-availability-checking %s -verify
func foo() {
if #available(macOS 10.15, *) {}
}