Skip to content

Commit d922918

Browse files
committed
Fix inlining tests on Windows
1 parent 26110e7 commit d922918

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/codegen/inlining_leakdefinitions.d

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ extern (C): // simplify mangling for easier matching
1717

1818
// Check that the global variables that are added due to "available_externally
1919
// inlining" do not have initializers, i.e. they are declared only and not definined.
20-
// OPT3-DAG: @module_variable = external thread_local global i32, align
21-
// OPT3-DAG: @{{.*}}write_function_static_variableUiZ15static_func_vari = external thread_local global i32, align
20+
21+
// OPT3-DAG: @module_variable = external thread_local{{.*}} global i32, align
22+
// OPT3-DAG: @{{.*}}write_function_static_variableUiZ15static_func_vari = external thread_local{{.*}} global i32, align
2223

2324
// OPT0-LABEL: define{{.*}} @call_class_function(
2425
// OPT3-LABEL: define{{.*}} @call_class_function(

tests/codegen/inlining_stdlib.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern (C): // simplify mangling for easier matching
1111
int foo(size_t i)
1212
{
1313
import core.bitop;
14-
// OPT0: call i32 @{{.*}}core5bitop3bsf
14+
// OPT0: call {{.*}} @{{.*}}core5bitop3bsf
1515
// OPT3: call {{.*}} @llvm.cttz
1616
return bsf(i);
1717
// OPT0: ret

0 commit comments

Comments
 (0)