Index: test/webkit/statement-list-register-crash.js |
diff --git a/test/webkit/resources/standalone-post.js b/test/webkit/statement-list-register-crash.js |
similarity index 86% |
copy from test/webkit/resources/standalone-post.js |
copy to test/webkit/statement-list-register-crash.js |
index d157e78bfa084329e2ec1a9b7d6ad456e904c152..b35908e9509a01244be3499eb489ddc39526c6ba 100644 |
--- a/test/webkit/resources/standalone-post.js |
+++ b/test/webkit/statement-list-register-crash.js |
@@ -21,6 +21,18 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-wasPostTestScriptParsed = true; |
+description( |
+'Tests that code generation of statement lists properly reference counts registers.' |
+); |
-finishJSTest(); |
+function f() |
+{ |
+ for(; ; i++) { |
+ a = 0; |
+ |
+ if (1) |
+ return true; |
+ } |
+} |
+ |
+shouldBeTrue("f()"); |