Skip to content

Commit e423d77

Browse files
committed
Generalize test to also work on Windows
1 parent c02811d commit e423d77

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifdef __cplusplus
2+
extern "C" {
3+
#endif
4+
5+
typedef __SIZE_TYPE__ size_t;
6+
7+
void* memset(void* s, int c, size_t n);
8+
9+
#ifdef __cplusplus
10+
}
11+
#endif

test/Interop/Cxx/extern-c/decls.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) %s -I %S/Inputs -import-bridging-header %S/../../../Inputs/clang-importer-sdk/usr/include/string.h -enable-experimental-cxx-interop | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) %s -I %S/Inputs -import-bridging-header %S/Inputs/my-memory.h -enable-experimental-cxx-interop | %FileCheck %s
22

33

44
func zerome(ptr: UnsafeMutablePointer<Int>) {

0 commit comments

Comments
 (0)