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

Unified Diff: tests/language/equality_test.dart

Issue 10860018: Fix null-equality comparison for unoptimized branch code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/equality_test.dart
===================================================================
--- tests/language/equality_test.dart (revision 10909)
+++ tests/language/equality_test.dart (working copy)
@@ -40,6 +40,14 @@
Expect.isTrue(death() != nullFn());
Expect.isTrue(nullFn() != death());
Expect.isFalse(nullFn() != nullFn());
+
+ if (death() == nullFn()) {
+ throw "failed";
+ }
+ if (death() != nullFn()) {
+ } else {
+ throw "failed";
+ }
}
main() {
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698