Files
swift-mirror/test/Interop/Cxx/symbolic-imports/indexing-emit-no-symbolic-module-interface-no-clang-module-index.swift
Egor Zhdan d19dfb0aee [cxx-interop] Adjust tests for new search path mechanism
Previously passing `-I %t` would mean that `%t/Inputs` is also indexed, but that is not the case anymore in certain scenarios.

rdar://128490765
2024-06-04 17:20:59 +01:00

24 lines
567 B
Swift

// RUN: %empty-directory(%t)
// RUN: split-file %s %t
//
// RUN: %target-swift-frontend %t/test.swift -I %t/Inputs -c -index-system-modules -index-ignore-clang-modules -index-store-path %t/store -enable-experimental-cxx-interop -Rindexing-system-module 2>&1 | %FileCheck %s
// RUN: not ls %t/store/interfaces
//--- Inputs/module.modulemap
module CxxModule {
header "headerA.h"
requires cplusplus
}
//--- Inputs/headerA.h
namespace ns {
int freeFunction(int x, int y);
}
//--- test.swift
import CxxModule
// CHECK-NOT: emitting symbolic interface at