Skip to content

Commit 2c9e807

Browse files
committed
another speculative fix to windows test failure
1 parent 878f162 commit 2c9e807

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/Interop/SwiftToCxxToSwift/hide-swift-module-namespace-in-swift.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
// RUN: %empty-directory(%t)
22
// RUN: split-file %s %t
33

4-
// RUN: touch %t/swiftMod.h
5-
// RUN: %target-swift-frontend -typecheck %t/swiftMod.swift -typecheck -module-name SwiftMod -emit-clang-header-path %t/swiftMod.h -I %t -enable-experimental-cxx-interop
4+
// RUN: %target-swift-frontend -typecheck %t/swiftMod.swift -typecheck -module-name SwiftMod -emit-clang-header-path %t/swiftMod.h -I %t -enable-experimental-cxx-interop -Xcc -DFIRSTPASS
65

76
// RUN: %FileCheck %s < %t/swiftMod.h
87

9-
// RUN: %target-swift-frontend -typecheck %t/swiftMod.swift -typecheck -module-name SwiftMod -emit-clang-header-path %t/swiftMod2.h -I %t -enable-experimental-cxx-interop -Xcc -DTEST_FORCE_MODULE_REBUILD
8+
// RUN: %target-swift-frontend -typecheck %t/swiftMod.swift -typecheck -module-name SwiftMod -emit-clang-header-path %t/swiftMod2.h -I %t -enable-experimental-cxx-interop
109

1110
// RUN: %check-interop-cxx-header-in-clang(%t/swiftMod2.h -DSWIFT_CXX_INTEROP_HIDE_STL_OVERLAY -Wno-error)
1211

1312
// XFAIL: OS=linux-android, OS=linux-androideabi
1413

1514
//--- header.h
15+
#ifndef FIRSTPASS
1616
#include "swiftMod.h"
17+
#endif
1718

1819
//--- module.modulemap
1920
module SwiftToCxxTest {

0 commit comments

Comments
 (0)