Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 784212c08cb9d07225aa45a21162e00c8ab02273..0229bb73db715884ce6cf9a22eea6f3c26591ce5 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -9066,6 +9066,15 @@ TEST(PreParserScopeAnalysis) { |
{"", "const var1 = 5;"}, |
{"", "if (true) { const var1 = 5; }"}, |
{"", "const var1 = 5; function f() { var1; }"}, |
+ |
+ {"", "var var1; var var1;"}, |
+ {"", "var var1; var var1; var1 = 5;"}, |
+ {"", "var var1; if (true) { var var1; }"}, |
+ {"", "if (true) { var var1; var var1; }"}, |
+ {"", "var var1; if (true) { var var1; var1 = 5; }"}, |
+ {"", "if (true) { var var1; var var1; var1 = 5; }"}, |
+ {"", "var var1; var var1; function f() { var1; }"}, |
+ {"", "var var1; var var1; function f() { var1 = 5; }"}, |
}; |
for (unsigned i = 0; i < arraysize(inners); ++i) { |