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

Side by Side Diff: tests/compiler/dart2js/kernel/simple_function_test.dart

Issue 2280133002: implement kernel -> ssa for literals (Closed)
Patch Set: put ast accesses in separate class Created 4 years, 3 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 import 'package:test/test.dart'; 1 import 'package:test/test.dart';
2 2
3 import 'helper.dart' show check; 3 import 'helper.dart' show check;
4 4
5 main() { 5 main() {
6 test('compile function that returns a constant', () { 6 group('compile function that returns a value', () {
7 return check("main() { return 1; }"); 7 test('constant int', () {
8 return check("main() { return 1; }");
9 });
10
11 test('constant double', () {
12 return check("main() { return 1.0; }");
13 });
14
15 test('constant string', () {
16 return check("main() { return 'hello'; }");
17 });
18
19 test('constant bool', () {
20 return check("main() { return true; }");
21 });
22
23 test('constant symbol', () {
24 return check("main() { return #hello; }");
25 });
26
27 test('null', () {
28 return check("main() { return null; }");
29 });
8 }); 30 });
9 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698