Files
swift-mirror/test/ClangImporter/requires.swift
Doug Gregor 69ab4fc56c Use LLVM diagnostic style for a number of Clang importer tests
These tests are checking the printed outpout of the diagnostic formatter
in ways that change with the Swift formatter, but are not consequential.
2024-02-19 02:48:36 -10:00

10 lines
368 B
Swift

// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/custom-modules -diagnostic-style llvm 2>&1 | %FileCheck %s
import Requires.Swift // OK
import Requires.NotSwift
// CHECK-NOT: error
// CHECK: error: module 'Requires.NotSwift' is incompatible with feature 'swift'
// CHECK-NOT: error
// CHECK: error: no such module 'Requires.NotSwift'
// CHECK-NOT: error