Skip to content

Commit 7119b9e

Browse files
committed
[Test] Underscored has_pointer_escape.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent bf65f21 commit 7119b9e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/SIL/Utils/OwnershipUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace swift::test {
103103
// - the value
104104
// - whether it has a pointer escape
105105
static FunctionTest OwnershipUtilsHasPointerEscape(
106-
"has-pointer-escape", [](auto &function, auto &arguments, auto &test) {
106+
"has_pointer_escape", [](auto &function, auto &arguments, auto &test) {
107107
auto value = arguments.takeValue();
108108
auto has = findPointerEscape(value);
109109
value->print(llvm::outs());

test/SILOptimizer/ownership-utils-unit.sil

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ right:
3838
%rinstance = apply %getOwned() : $@convention(thin) () -> (@owned C)
3939
br exit(%rinstance : $C)
4040
exit(%instance : @owned $C):
41-
// CHECK-LABEL: begin running test {{[0-9]+}} of {{[0-9]+}} on test_escape_of_phi_transitive_incoming_value: has-pointer-escape
41+
// CHECK-LABEL: begin running test {{[0-9]+}} of {{[0-9]+}} on test_escape_of_phi_transitive_incoming_value: has_pointer_escape
4242
// CHECK: %14 = argument of bb6 : $C
4343
// CHECK: true
44-
// CHECK-LABEL: end running test {{[0-9]+}} of {{[0-9]+}} on test_escape_of_phi_transitive_incoming_value: has-pointer-escape with
45-
specify_test "has-pointer-escape @block.argument"
44+
// CHECK-LABEL: end running test {{[0-9]+}} of {{[0-9]+}} on test_escape_of_phi_transitive_incoming_value: has_pointer_escape with
45+
specify_test "has_pointer_escape @block.argument"
4646
destroy_value %instance : $C
4747
%retval = tuple ()
4848
return %retval : $()
@@ -54,7 +54,7 @@ entry:
5454
br loop_entry(%instance_1 : $FakeOptional<C>)
5555

5656
loop_entry(%18 : @owned $FakeOptional<C>):
57-
specify_test "has-pointer-escape @block.argument"
57+
specify_test "has_pointer_escape @block.argument"
5858
br loop_body
5959

6060
loop_body:

0 commit comments

Comments
 (0)