Add test for Issue 23432

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//1136383004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@45821 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/dart/tests/compiler/dart2js_extra/23432_test.dart b/dart/tests/compiler/dart2js_extra/23432_test.dart
new file mode 100644
index 0000000..0e2956f
--- /dev/null
+++ b/dart/tests/compiler/dart2js_extra/23432_test.dart
@@ -0,0 +1,26 @@
+// Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Regression test for http://dartbug.com/23432
+
+import 'package:expect/expect.dart';
+
+class N {
+  noSuchMethod(i) { print('x'); return 42; }
+}
+
+get NEVER => new DateTime.now().millisecondsSinceEpoch < 42;
+
+main() {
+  var c = 12345;
+  if (NEVER) c = new N();
+  var e;
+  try {
+    c..toString()..add(88);
+  } catch (ex) {
+    e = ex;
+  }
+  var s = e.toString();
+  Expect.isTrue(s.contains('$c'), 'Text "$s" should contain "$c"');
+}
diff --git a/dart/tests/compiler/dart2js_extra/dart2js_extra.status b/dart/tests/compiler/dart2js_extra/dart2js_extra.status
index e234ec4..7f04ef9 100644
--- a/dart/tests/compiler/dart2js_extra/dart2js_extra.status
+++ b/dart/tests/compiler/dart2js_extra/dart2js_extra.status
@@ -4,6 +4,7 @@
 
 [ $compiler == dart2js ]
 16407_test: Fail # Issue 16407
+23432_test: Fail # Issue 23432
 class_test: Fail
 statements_test: Fail
 typed_locals_test: Fail