From 3a47103f1d2bbf144d3866abc9fe74a9143d2988 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Thu, 26 May 2016 13:04:35 -0400 Subject: Fix codegen tests by make sure items are translated in AST order. --- src/test/codegen/drop.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/test/codegen') diff --git a/src/test/codegen/drop.rs b/src/test/codegen/drop.rs index 83dd6a3b002..25f8c130469 100644 --- a/src/test/codegen/drop.rs +++ b/src/test/codegen/drop.rs @@ -31,13 +31,13 @@ pub fn droppy() { // that's one new drop call per call to possibly_unwinding(), and finally 3 drop calls for the // regular function exit. We used to have problems with quadratic growths of drop calls in such // functions. -// CHECK: call{{.*}}SomeUniqueName{{.*}}drop -// CHECK: call{{.*}}SomeUniqueName{{.*}}drop -// CHECK: call{{.*}}SomeUniqueName{{.*}}drop -// CHECK: call{{.*}}SomeUniqueName{{.*}}drop -// CHECK: call{{.*}}SomeUniqueName{{.*}}drop -// CHECK: call{{.*}}SomeUniqueName{{.*}}drop -// CHECK-NOT: call{{.*}}SomeUniqueName{{.*}}drop +// CHECK: call{{.*}}drop{{.*}}SomeUniqueName +// CHECK: call{{.*}}drop{{.*}}SomeUniqueName +// CHECK: call{{.*}}drop{{.*}}SomeUniqueName +// CHECK: call{{.*}}drop{{.*}}SomeUniqueName +// CHECK: call{{.*}}drop{{.*}}SomeUniqueName +// CHECK: call{{.*}}drop{{.*}}SomeUniqueName +// CHECK-NOT: call{{.*}}drop{{.*}}SomeUniqueName // The next line checks for the } that ends the function definition // CHECK-LABEL: {{^[}]}} let _s = SomeUniqueName; -- cgit 1.4.1-3-g733a5