mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
23 lines
483 B
Swift
23 lines
483 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: split-file %s %t
|
|
// RUN: %target-swift-frontend %t/test.swift -c -enable-experimental-cxx-interop -Xcc -std=c++17 -Xcc -fmodules-cache-path=%t/cache -I %t/Inputs
|
|
// RUN: find %t/cache | %FileCheck %s
|
|
|
|
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
|
|
//--- Inputs/module.modulemap
|
|
module CxxModule {
|
|
header "header.h"
|
|
requires cplusplus
|
|
}
|
|
|
|
//--- Inputs/header.h
|
|
|
|
#include <string_view>
|
|
|
|
//--- test.swift
|
|
|
|
import CxxModule
|
|
|
|
// CHECK: std-{{.*}}.pcm
|