Add test case for bug 692208.
authorDavid Anderson <danderson@mozilla.com>
Thu, 13 Oct 2011 12:41:01 -0700
changeset 78974 b9e09bc7afa2338ef7af748b560df5af4ebde554
parent 78973 b2cc6f0cc5802c576962f2fef1b10cdb2eb61394
child 78975 6e600ec5f9b4f426ea5899bfc0564139036c32c2
push idunknown
push userunknown
push dateunknown
bugs692208
milestone10.0a1
Add test case for bug 692208.
js/src/jit-test/tests/ion/bug692208.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug692208.js
@@ -0,0 +1,10 @@
+// |jit-test| error: ReferenceError
+SwitchTest( 0, 126 );
+function SwitchTest( input, expect ) {
+  switch ( input ) {
+  case (7):
+  default:
+    result += 32;
+  case 4:
+  }
+}