Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: pkg/kernel/testcases/interpreter/static_invocation_test.dart

Issue 2841803002: Add initial tests for Kernel interpreter (Closed)
Patch Set: Apply comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 library static_invocation_test;
6
7 /// Simple program containing static invocations.
8 ///
9 /// The log of this test is used to verify the order of execution and evaluation
10 /// of function body, arguments and static invocation expression.
11 void main() {
12 a();
13 b(1, 9);
14 print(b(1, 9));
15 var retD = d();
16 print(c(37));
17 print(retD);
18 }
19
20 void a() {}
21
22 void b(int n, int m) {
23 print(n);
24 print(m);
25 print(n + m);
26 }
27
28 String c(int n) {
29 print('c:$n');
30 return "d:${d()}";
31 }
32
33 int d() {
34 a();
35 return 37;
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698