Skip to content

Commit 5b39fa7

Browse files
authored
Merge pull request #30823 from MForster/test-layout
2 parents bb0aa1c + f609a7c commit 5b39fa7

11 files changed

+15
-24
lines changed

test/ClangImporter/Inputs/custom-modules/module.map

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ module script {
22
header "script.h"
33
}
44

5-
module AccessSpecifiers {
6-
header "AccessSpecifiers.h"
7-
export *
8-
}
9-
105
module AvailabilityExtras {
116
header "AvailabilityExtras.h"
127
export *
@@ -89,11 +84,6 @@ module LinkMusket {
8984
link framework "Barrel"
9085
}
9186

92-
module MemoryLayout {
93-
header "MemoryLayout.h"
94-
export *
95-
}
96-
9787
module MissingHeader {
9888
header "this-header-does-not-exist.h"
9989
}

test/CxxInterop/class/Inputs/module.modulemap

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
module CxxMemberVariables {
1+
module AccessSpecifiers {
2+
header "access-specifiers.h"
3+
}
4+
5+
module MemoryLayout {
6+
header "memory-layout.h"
7+
}
8+
9+
module MemberVariables {
210
header "member-variables.h"
311
}

test/ClangImporter/access-specifiers-module-interface.swift renamed to test/Interop/Cxx/class/access-specifiers-module-interface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test module interface produced for C++ access specifiers test.
22
// In particular, we don't want any of the private members showing up here.
33

4-
// RUN: %target-swift-ide-test -print-module -module-to-print=AccessSpecifiers -I %S/Inputs/ -source-filename=x -enable-cxx-interop | %FileCheck %s
4+
// RUN: %target-swift-ide-test -print-module -module-to-print=AccessSpecifiers -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
55

66
// CHECK: struct PublicPrivate {
77
// CHECK-NEXT: typealias PublicTypedef = Int32

test/ClangImporter/access-specifiers.swift renamed to test/Interop/Cxx/class/access-specifiers-typechecker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test that C++ access specifiers are honored, i.e. private members aren't
22
// imported.
33

4-
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -I %S/Inputs/custom-modules/ -enable-cxx-interop
4+
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -I %S/Inputs -enable-cxx-interop
55

66
import AccessSpecifiers
77

test/Interop/Cxx/class/member-variables-module-interface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-ide-test -print-module -module-to-print=CxxMemberVariables -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
1+
// RUN: %target-swift-ide-test -print-module -module-to-print=MemberVariables -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
22

33
// CHECK: struct MyClass {
44
// CHECK-NEXT: var const_member: Int32 { get }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift -I %S/Inputs -enable-cxx-interop
22

3-
import CxxMemberVariables
3+
import MemberVariables
44

55
var s = MyClass()
66
s.const_member = 42 // expected-error {{cannot assign to property: 'const_member' setter is inaccessible}}

test/ClangImporter/memory-layout-executable.swift renamed to test/Interop/Cxx/class/memory-layout-execution.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift %s -I %S/Inputs/custom-modules/ -o %t/class_layout -Xfrontend -enable-cxx-interop
2+
// RUN: %target-build-swift %s -I %S/Inputs -o %t/class_layout -Xfrontend -enable-cxx-interop
33
// RUN: %target-codesign %t/class_layout
44
// RUN: %target-run %t/class_layout 2&>1
55
//

test/ClangImporter/memory-layout-ir.swift renamed to test/Interop/Cxx/class/memory-layout-silgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -I %S/Inputs/custom-modules/ -enable-cxx-interop -emit-ir -o - %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -I %S/Inputs -enable-cxx-interop -emit-ir -o - %s | %FileCheck %s
22

33
import MemoryLayout
44

0 commit comments

Comments
 (0)