Skip to content

Commit 7d683f5

Browse files
committed
Fix codegen test for MSVC
1 parent 3406db9 commit 7d683f5

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/test/codegen/drop.rs

+1-12
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,7 @@ pub fn droppy() {
2323
// FIXME(eddyb) the `void @` forces a match on the instruction, instead of the
2424
// comment, that's `; call core::ptr::drop_in_place::<drop::SomeUniqueName>`
2525
// for the `v0` mangling, should switch to matching on that once `legacy` is gone.
26-
// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
27-
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
28-
// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
29-
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
30-
// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
31-
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
32-
// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
33-
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
34-
// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
35-
// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
36-
// CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName
37-
// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName
26+
// CHECK-COUNT-6: {{(call|invoke) void @.*}}drop_in_place{{.*}}SomeUniqueName
3827
// CHECK-NOT: {{(call|invoke) void @.*}}drop_in_place{{.*}}SomeUniqueName
3928
// The next line checks for the } that ends the function definition
4029
// CHECK-LABEL: {{^[}]}}

src/test/codegen/unwind-landingpad-cold.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// get the `cold` attribute.
77

88
// CHECK-LABEL: @check_cold
9-
// CHECK: invoke void {{.+}}drop_in_place{{.+}} [[ATTRIBUTES:#[0-9]+]]
9+
// CHECK: {{(call|invoke) void .+}}drop_in_place{{.+}} [[ATTRIBUTES:#[0-9]+]]
1010
// CHECK: attributes [[ATTRIBUTES]] = { cold }
1111
#[no_mangle]
1212
pub fn check_cold(f: fn(), x: Box<u32>) {

0 commit comments

Comments
 (0)