mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
27 lines
755 B
Swift
27 lines
755 B
Swift
// UNSUPPORTED: OS=freebsd
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: split-file %s %t
|
|
|
|
// RUN: %target-swift-frontend -scan-dependencies -module-name Test -module-cache-path %t/clang-module-cache %t/main.swift -o %t/deps.json -I %t/include -swift-version 4 -cache-compile-job -cas-path %t/cas -cxx-interoperability-mode=default
|
|
|
|
// RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps.json clang:MyCXX clangIncludeTree | %FileCheck %s
|
|
// RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps.json clang:MyCXX moduleCacheKey | %FileCheck %s
|
|
|
|
// CHECK: llvmcas://
|
|
|
|
//--- main.swift
|
|
import MyCXX
|
|
|
|
//--- include/module.modulemap
|
|
module MyCXX {
|
|
header "mycxx.h"
|
|
requires cplusplus
|
|
}
|
|
|
|
//--- include/mycxx.h
|
|
#pragma once
|
|
class A {};
|
|
|
|
void test(const A& str);
|