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

Unified Diff: tests/compiler/dart2js/expect_annotations2_test.dart

Issue 987393002: Support @NoInline for constructor bodies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comments Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/expect_annotations2_test.dart
diff --git a/tests/compiler/dart2js/expect_annotations2_test.dart b/tests/compiler/dart2js/expect_annotations2_test.dart
index 4357c1de0238b5f239501c8b0c9338ad028f9ef4..580ba3a73cb34f937fb053a4ee555ce69e3eed88 100644
--- a/tests/compiler/dart2js/expect_annotations2_test.dart
+++ b/tests/compiler/dart2js/expect_annotations2_test.dart
@@ -14,6 +14,11 @@ const MEMORY_SOURCE_FILES = const {
foo(y) => 49912344 + y;
class A {
+ var field;
+
+ @NoInline()
+ A([this.field = 4711]);
+
@NoInline()
static bar(x) => x + 123455;
@@ -25,6 +30,7 @@ const MEMORY_SOURCE_FILES = const {
print(foo(23412));
print(A.bar(87654));
print(new A().gee(1337, 919182));
+ print(new A().field + 1);
}'''};
void main() {
@@ -41,5 +47,6 @@ void main() {
Expect.isFalse(jsOutput.contains('49935756'));
Expect.isFalse(jsOutput.contains('211109'));
Expect.isFalse(jsOutput.contains('82155031'));
+ Expect.isFalse(jsOutput.contains('4712'));
}));
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | tests/language/implicit_super_constructor_call_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698