Skip to content

Commit 4da9a87

Browse files
committed
[cxx-interop] Enable a test for reference types on non-Darwin
1 parent af1d601 commit 4da9a87

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/Interop/Cxx/foreign-reference/not-any-object.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22
// RUN: split-file %s %t
33
// RUN: %target-swift-frontend -typecheck -verify -verify-ignore-unknown -I %t/Inputs %t/test.swift -enable-experimental-cxx-interop
44

5-
// REQUIRES: objc_interop
6-
75
//--- Inputs/module.modulemap
86
module Test {
97
header "test.h"
108
requires cplusplus
119
}
1210

1311
//--- Inputs/test.h
14-
#include <stdlib.h>
15-
16-
inline void* operator new(unsigned long, void* p) { return p; }
12+
#include <new>
1713

1814
struct __attribute__((swift_attr("import_reference")))
1915
__attribute__((swift_attr("retain:immortal")))

0 commit comments

Comments
 (0)