Index: test/mjsunit/regress/regress-2226.js |
diff --git a/src/platform-posix.h b/test/mjsunit/regress/regress-2226.js |
similarity index 85% |
copy from src/platform-posix.h |
copy to test/mjsunit/regress/regress-2226.js |
index 7a982ed2ef3080dad77860d6f46b356a9067bf3b..1ac3d3062a0d2dec9951c38a5fccb3c163c49a54 100644 |
--- a/src/platform-posix.h |
+++ b/test/mjsunit/regress/regress-2226.js |
@@ -25,15 +25,12 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-#ifndef V8_PLATFORM_POSIX_H_ |
-#define V8_PLATFORM_POSIX_H_ |
+var foo = function() { 0; /* foo function */ }; |
+var bar = function() { 1; /* bar function */ }; |
+var baz = function() { 2; /* baz function */ }; |
-namespace v8 { |
-namespace internal { |
+var test = foo.test = bar.test = baz; |
-// Used by platform implementation files during OS::PostSetUp(). |
-void POSIXPostSetUp(); |
- |
-} } // namespace v8::internal |
- |
-#endif // V8_PLATFORM_POSIX_H_ |
+assertEquals(baz, test); |
+assertEquals(baz, foo.test); |
+assertEquals(baz, bar.test); |