Files
swift-mirror/test/Parse/features.swift
2022-05-26 13:43:36 -07:00

12 lines
405 B
Swift

// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck --check-prefix=CHECK-WITHOUT %s
// RUN: %target-typecheck-verify-swift -enable-experimental-static-assert
// RUN: %target-typecheck-verify-swift -enable-experimental-feature StaticAssert
// REQUIRES: asserts
#if compiler(>=5.3) && $StaticAssert
#assert(true)
#else
// CHECK-WITHOUT: cannot find 'complete' in scope
complete junk
#endif