Update VM CC test to new void rules

Change-Id: Icf8db6ab4dd701b449af5998d3ed10cc3d5b2e6f
Reviewed-on: https://dart-review.googlesource.com/65503
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
This commit is contained in:
Peter von der Ahé
2018-07-18 09:48:19 +00:00
committed by commit-bot@chromium.org
parent 389b8997b3
commit db45d049db
+9 -9
View File
@@ -3857,38 +3857,38 @@ TEST_CASE(Metadata) {
TEST_CASE(FunctionSourceFingerprint) {
const char* kScriptChars =
"class A {\n"
" static void test1(int a) {\n"
" static test1(int a) {\n"
" return a > 1 ? a + 1 : a;\n"
" }\n"
" static void test2(a) {\n"
" static test2(a) {\n"
" return a > 1 ? a + 1 : a;\n"
" }\n"
" static void test3(b) {\n"
" static test3(b) {\n"
" return b > 1 ? b + 1 : b;\n"
" }\n"
" static void test4(b) {\n"
" static test4(b) {\n"
" return b > 1 ? b - 1 : b;\n"
" }\n"
" static void test5(b) {\n"
" static test5(b) {\n"
" return b > 1 ? b - 2 : b;\n"
" }\n"
" void test6(int a) {\n"
" test6(int a) {\n"
" return a > 1 ? a + 1 : a;\n"
" }\n"
"}\n"
"class B {\n"
" static void /* Different declaration style. */\n"
" static /* Different declaration style. */\n"
" test1(int a) {\n"
" /* Returns a + 1 for a > 1, a otherwise. */\n"
" return a > 1 ?\n"
" a + 1 :\n"
" a;\n"
" }\n"
" static void test5(b) {\n"
" static test5(b) {\n"
" return b > 1 ?\n"
" b - 2 : b;\n"
" }\n"
" void test6(int a) {\n"
" test6(int a) {\n"
" return a > 1 ? a + 1 : a;\n"
" }\n"
"}";