diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2019-11-16 13:23:31 +0000 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-10-04 07:54:01 -0400 |
| commit | fa3e2fcbe4bb6c878d137eb427fc34daf49b8c69 (patch) | |
| tree | bc88bfa53c74fb287b3b5d513cfbcf1a6b278434 /src/test/codegen | |
| parent | 0d37dca25a51fb900a402c94c8818ad1c2789e30 (diff) | |
| download | rust-fa3e2fcbe4bb6c878d137eb427fc34daf49b8c69.tar.gz rust-fa3e2fcbe4bb6c878d137eb427fc34daf49b8c69.zip | |
Defer creating drop trees in MIR lowering until leaving that scope
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/drop.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/drop.rs b/src/test/codegen/drop.rs index 0c7f3bb2020..99a791464ab 100644 --- a/src/test/codegen/drop.rs +++ b/src/test/codegen/drop.rs @@ -23,13 +23,13 @@ pub fn droppy() { // FIXME(eddyb) the `void @` forces a match on the instruction, instead of the // comment, that's `; call core::intrinsics::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: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK: call 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 |
