mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
405 B
Swift
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
|