diff options
| author | Gary Guo <gary@garyguo.net> | 2022-02-18 18:19:30 +0000 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2022-02-19 17:29:56 +0000 |
| commit | 7d683f525a6cd807f7bcb1293c71bce613936e79 (patch) | |
| tree | 2134f97e0ef82316e522480419ab3a96d64d9f73 /src/test/codegen | |
| parent | 3406db94168f4eec9008df82427779370bd609d5 (diff) | |
| download | rust-7d683f525a6cd807f7bcb1293c71bce613936e79.tar.gz rust-7d683f525a6cd807f7bcb1293c71bce613936e79.zip | |
Fix codegen test for MSVC
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/drop.rs | 13 | ||||
| -rw-r--r-- | src/test/codegen/unwind-landingpad-cold.rs | 2 |
2 files changed, 2 insertions, 13 deletions
diff --git a/src/test/codegen/drop.rs b/src/test/codegen/drop.rs index 5e9ef237843..99402827158 100644 --- a/src/test/codegen/drop.rs +++ b/src/test/codegen/drop.rs @@ -23,18 +23,7 @@ pub fn droppy() { // FIXME(eddyb) the `void @` forces a match on the instruction, instead of the // comment, that's `; call core::ptr::drop_in_place::<drop::SomeUniqueName>` // for the `v0` mangling, should switch to matching on that once `legacy` is gone. -// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName +// CHECK-COUNT-6: {{(call|invoke) void @.*}}drop_in_place{{.*}}SomeUniqueName // CHECK-NOT: {{(call|invoke) void @.*}}drop_in_place{{.*}}SomeUniqueName // The next line checks for the } that ends the function definition // CHECK-LABEL: {{^[}]}} diff --git a/src/test/codegen/unwind-landingpad-cold.rs b/src/test/codegen/unwind-landingpad-cold.rs index 432f60f335b..aa00b793654 100644 --- a/src/test/codegen/unwind-landingpad-cold.rs +++ b/src/test/codegen/unwind-landingpad-cold.rs @@ -6,7 +6,7 @@ // get the `cold` attribute. // CHECK-LABEL: @check_cold -// CHECK: invoke void {{.+}}drop_in_place{{.+}} [[ATTRIBUTES:#[0-9]+]] +// CHECK: {{(call|invoke) void .+}}drop_in_place{{.+}} [[ATTRIBUTES:#[0-9]+]] // CHECK: attributes [[ATTRIBUTES]] = { cold } #[no_mangle] pub fn check_cold(f: fn(), x: Box<u32>) { |
