Sign in
webkit
/
WebKit
/
60c3f717a9141a0f8afd6e8437d26c6404e4424c
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-bool-to-int32-reuse.js
blob: 5cfe1ad21716ea35123178481f4ee7523da9a30e [
file
] [
log
] [
blame
]
description
(
"Tests that using a value predicted boolean after it is converted to an int32 doesn't crash the compiler while causing bad code gen."
);
function
foo
(
x
)
{
return
[
x
<<
1
,
x
];
}
dfgShouldBe
(
foo
,
"foo(true)"
,
"[2, true]"
);