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

Side by Side Diff: pkg/front_end/testcases/fibonacci.dart.dartk.expect

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 static method fibonacci(core::int n) → core::int { 5 static method fibonacci(core::int n) → core::int {
6 if(n.<(2)) 6 if(n.<(2))
7 return n; 7 return n;
8 return self::fibonacci(n.-(1)).+(self::fibonacci(n.-(2))); 8 return self::fibonacci(n.-(1)).+(self::fibonacci(n.-(2)));
9 } 9 }
10 static method main() → dynamic { 10 static method main() → dynamic {
11 for (core::int i = 0; i.<(20); i = i.+(1)) { 11 for (core::int i = 0; i.<(20); i = i.+(1)) {
12 core::print(self::fibonacci(i)); 12 core::print(self::fibonacci(i));
13 } 13 }
14 } 14 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/fibonacci.dart ('k') | pkg/front_end/testcases/fibonacci.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698