mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
d287715778
PlaygroundTransform tests now compile test cases for both Swift language modes 5 and 6.
10 lines
436 B
Swift
10 lines
436 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: cp %s %t/main.swift
|
|
// RUN: not %target-swift-frontend -typecheck -swift-version 5 -playground -diagnostic-style llvm %t/main.swift 2>&1 | %FileCheck %s
|
|
// RUN: not %target-swift-frontend -typecheck -swift-version 6 -playground -diagnostic-style llvm %t/main.swift 2>&1 | %FileCheck %s
|
|
|
|
// CHECK: error: no such module
|
|
import Nonexistent_Module
|
|
// CHECK-NOT: error
|
|
import Another_Nonexistent_Module
|