mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
These tests are checking the printed outpout of the diagnostic formatter in ways that change with the Swift formatter, but are not consequential.
41 lines
2.5 KiB
Swift
41 lines
2.5 KiB
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: not %target-swift-frontend -enable-objc-interop -typecheck %/s -I %S/Inputs/broken-modules/ -enable-source-import -show-diagnostics-after-fatal -diagnostic-style llvm -o /dev/null 2>&1 | %FileCheck -check-prefix CHECK -check-prefix CLANG-CHECK %s
|
|
|
|
// RUN: not %target-swift-frontend -typecheck %/s -enable-objc-interop -import-objc-header %S/Inputs/broken-modules/BrokenClangModule.h -enable-source-import -diagnostic-style llvm -o /dev/null 2>&1 | %FileCheck -check-prefix CHECK-BRIDGING-HEADER -check-prefix CLANG-CHECK %s
|
|
|
|
// RUN: not %target-swift-frontend -typecheck %s -enable-objc-interop -import-objc-header %S/../../Inputs/empty.swift -diagnostic-style llvm 2>&1 | %FileCheck -check-prefix=EMPTY-HEADER %s
|
|
|
|
// EMPTY-HEADER-NOT: header
|
|
|
|
import Nonexistent
|
|
// CHECK-NOT: not found
|
|
// CHECK: broken-modules.swift:[[@LINE-2]]:8: error: no such module 'Nonexistent'
|
|
|
|
import MissingDependencyFromSwift
|
|
// CHECK-NOT: not found
|
|
// CHECK: MissingDependencyFromSwift.swift:1:8: error: no such module 'Dependency'
|
|
// CHECK-NOT: no such module 'MissingDependencyFromSwift'
|
|
|
|
import MissingDependencyFromClang
|
|
// CHECK: {{.+}}{{/|\\}}Inputs{{/|\\}}broken-modules{{/|\\}}MissingDependencyFromClang.h:1:9: error: module 'Dependency' not found
|
|
// CHECK: broken-modules.swift:[[@LINE-2]]:8: error: could not build Objective-C module 'MissingDependencyFromClang'
|
|
// CHECK: error: no such module 'MissingDependencyFromClang'
|
|
|
|
import BrokenClangModule
|
|
// CLANG-CHECK: {{.+}}{{/|\\}}Inputs{{/|\\}}broken-modules{{/|\\}}BrokenClangModule.h:2:13: error: redefinition of 'conflict' as different kind of symbol
|
|
// CLANG-CHECK: {{.+}}{{/|\\}}Inputs{{/|\\}}broken-modules{{/|\\}}BrokenClangModule.h:1:5: note: previous definition is here
|
|
// CLANG-CHECK: a-fake-file.h:43:13: error: redefinition of 'conflict2' as different kind of symbol
|
|
// CLANG-CHECK: a-fake-file.h:42:5: note: previous definition is here
|
|
// CLANG-CHECK: a-fake-file.h:46:5: error: expected identifier or '('
|
|
// CLANG-CHECK: a-fake-file.h:45:11: note: expanded from macro 'I'
|
|
// CLANG-CHECK: {{.+}}{{/|\\}}Inputs{{/|\\}}broken-modules{{/|\\}}BrokenClangModule.h:11:35: error: expected ';' after top level declarator
|
|
|
|
// CHECK: broken-modules.swift:[[@LINE-9]]:8: error: could not build Objective-C module 'BrokenClangModule'
|
|
// CHECK: error: no such module 'BrokenClangModule'
|
|
// CHECK-BRIDGING-HEADER: error: failed to import bridging header '{{.*}}/BrokenClangModule.h'
|
|
|
|
|
|
_ = BrokenClangModule.x
|
|
// CHECK: broken-modules.swift:[[@LINE-1]]:5: error: cannot find 'BrokenClangModule' in scope
|