mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:58:32 +00:00
[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:
parent
6bafe2fbf7
commit
56a17a3e85
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue