Files
swift-mirror/test/ScanDependencies/module_builtin.swift
Artem Chikin 4a0a2f3607 [Dependency Scanning] Special-case imports of the 'Builtin' module not referencing an "actual" module
Otherwise the scanner will attempt to locate such a module on the filesystem and fail, because it does not exist.
2023-10-25 15:01:13 -07:00

11 lines
351 B
Swift

// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t/clang-module-cache)
// RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t/clang-module-cache %s -o %t/deps.json -I %S/Inputs/CHeaders -I %S/Inputs/Swift -verify
// RUN: %validate-json %t/deps.json | %FileCheck %s
import HasBuiltinImport
// CHECK: "mainModuleName": "deps"