Skip to content

Commit d335158

Browse files
committed
test: correct a couple of tests for Windows
On Windows, we do not emit the base type pointer and instead will fill that in at runtime just like the resilient strategy. Permit this in the IRGen checks.
1 parent f143db7 commit d335158

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/IRGen/empty_enum.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-frontend -primary-file %s -emit-ir | %FileCheck %s
22

33
// CHECK: @"$s10empty_enum6JamaisOMf" =
4-
// CHECK-SAME: @"$sytWV"
4+
// CHECK-SAME: {{@"\$sytWV"|i8\*\* getelementptr inbounds \(%swift.enum_vwtable, %swift.enum_vwtable\* @"\$s10empty_enum6JamaisOWV", i32 0, i32 0\)}}
55

66
enum Jamais {}

test/multifile/nested_types.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
// Make sure we generate the outer metadata.
44

5-
// CHECK-DAG: @"$s4test5OuterVMf" = internal constant {{.*}} @"$sytWV"{{.*}}@"$s4test5OuterVMn"
6-
// CHECK-DAG: @"$s4test6Outer2VMf" = internal constant {{.*}} @"$sytWV"{{.*}}@"$s4test6Outer2VMn"
7-
// CHECK-DAG: @"$s4test6Outer3VMf" = internal constant {{.*}} @"$sytWV"{{.*}}@"$s4test6Outer3VMn"
8-
// CHECK-DAG: @"$s4test6Outer4VMf" = internal constant {{.*}} @"$sytWV"{{.*}}@"$s4test6Outer4VMn"
5+
// CHECK-DAG: @"$s4test5OuterVMf" = internal constant {{.*}} {{@"\$sytWV"|i8\*\* getelementptr inbounds \(%swift.vwtable, %swift.vwtable\* @"\$s4test5OuterVWV", i32 0, i32 0\)}}, {{.*}} @"$s4test5OuterVMn"
6+
// CHECK-DAG: @"$s4test6Outer2VMf" = internal constant {{.*}} {{@"\$sytWV"|i8\*\* getelementptr inbounds \(%swift.vwtable, %swift.vwtable\* @"\$s4test6Outer2VWV", i32 0, i32 0\)}}, {{.*}} @"$s4test6Outer2VMn"
7+
// CHECK-DAG: @"$s4test6Outer3VMf" = internal constant {{.*}} {{@"\$sytWV"|i8\*\* getelementptr inbounds \(%swift.vwtable, %swift.vwtable\* @"\$s4test6Outer3VWV", i32 0, i32 0\)}}, {{.*}} @"$s4test6Outer3VMn"
8+
// CHECK-DAG: @"$s4test6Outer4VMf" = internal constant {{.*}} {{@"\$sytWV"|i8\*\* getelementptr inbounds \(%swift.vwtable, %swift.vwtable\* @"\$s4test6Outer4VWV", i32 0, i32 0\)}}, {{.*}} @"$s4test6Outer4VMn"
99

1010
class C<T> { }
1111

0 commit comments

Comments
 (0)