Skip to content

Commit 83ebd7d

Browse files
committed
[interop] NFC, add a test for importing a C++ module that imports string_view
1 parent 8b63ce8 commit 83ebd7d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: split-file %s %t
3+
// 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
4+
// RUN: find %t/cache | %FileCheck %s
5+
6+
// REQUIRES: OS=macosx || OS=linux-gnu
7+
8+
//--- Inputs/module.modulemap
9+
module CxxModule {
10+
header "header.h"
11+
requires cplusplus
12+
}
13+
14+
//--- Inputs/header.h
15+
16+
#include <string_view>
17+
18+
//--- test.swift
19+
20+
import CxxModule
21+
22+
// CHECK: std-{{.*}}.pcm

0 commit comments

Comments
 (0)