File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
IDE/Inputs/custom-modules Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -128,3 +128,6 @@ extern void mutate_TRefRef(_Null_unspecified TRefRef* _Null_unspecified)
128
128
__attribute((swift_name ("TRefRef.mutate(self:)" )));
129
129
extern void use_ConstTRef (_Null_unspecified ConstTRefRef )
130
130
__attribute((swift_name ("ConstTRefRef.use(self:)" )));
131
+
132
+ typedef NSString * MyString __attribute__((__swift_newtype__ (struct )));
133
+
Original file line number Diff line number Diff line change @@ -35,11 +35,6 @@ module objc_extensions_helper {
35
35
header "objc_extensions_helper.h"
36
36
}
37
37
38
- module Newtype {
39
- header "newtype.h"
40
- export *
41
- }
42
-
43
38
module NonNilTest {
44
39
header "NonNilTest.h"
45
40
export *
Original file line number Diff line number Diff line change 1
-
2
- // RUN: %target-swift-emit- silgen -module-name newtype -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s -check-prefix=CHECK-RAW
3
-
4
- // RUN: %target-swift-emit-sil - module-name newtype -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s -check-prefix=CHECK-CANONICAL
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %build- silgen-test-overlays
3
+ // RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk -I %t) -module-name newtype -I %S/Inputs -I %S/Inputs -I %S/../IDE/Inputs/custom-modules -enable-objc-interop -enable-source-import %s | %FileCheck %s -check-prefix=CHECK-RAW
4
+ // RUN: %target-swift-emit-sil(mock-sdk: %clang-importer-sdk -I %t) - module-name newtype -I %S/Inputs -I %S/Inputs -I %S/../IDE/Inputs/custom-modules - enable-objc-interop -enable- source-import %s | %FileCheck %s -check-prefix=CHECK-CANONICAL
5
5
6
6
// REQUIRES: objc_interop
7
7
You can’t perform that action at this time.
0 commit comments