mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
593 B
Swift
16 lines
593 B
Swift
// REQUIRES: objc_interop
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: split-file %s %t
|
|
|
|
// RUN: %target-swift-frontend -scan-dependencies -module-name Test %t/main.swift -import-objc-header %t/bridging.h \
|
|
// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib \
|
|
// RUN: -o %t/deps.json -I %t -swift-version 5 2>&1 | %FileCheck %s
|
|
|
|
// CHECK: error: Bridging header dependency scan failure: {{.*}}bridging.h:1:10: fatal error: 'do-not-exist.h' file not found
|
|
|
|
//--- bridging.h
|
|
#include "do-not-exist.h"
|
|
|
|
//--- main.swift
|
|
func test() {}
|