[vm/tests] Fix vm/dart/regress_306327173_il_test for ASAN.

TEST=vm/dart/regress_306327173_il_test

Fixes: https://github.com/dart-lang/sdk/issues/53870
Cq-Include-Trybots: luci.dart.try:vm-asan-linux-release-x64-try,vm-aot-asan-linux-release-x64-try
Change-Id: I0f507175ad48c88294b626285b5025763c235b17
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332420
Auto-Submit: Tess Strickland <sstrickl@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
Tess Strickland 2023-10-26 17:03:18 +00:00 committed by Commit Queue
parent 6bafe2fbf7
commit 56a17a3e85

View file

@ -45,8 +45,10 @@ void matchIL$deref(FlowGraph graph) {
void main() {
const ptrValue = 0x80000000;
if (!isSimulator) {
final p = malloc.allocate<Pointer<Void>>(sizeOf<Pointer<Void>>());
p.value = Pointer.fromAddress(ptrValue);
Expect.equals(ptrValue, deref(p));
using(arena) {
final p = arena.allocate<Pointer<Void>>(sizeOf<Pointer<Void>>());
p.value = Pointer.fromAddress(ptrValue);
Expect.equals(ptrValue, deref(p));
}
}
}