Initial push.
diff --git a/src/test/examples/memberrebinding2/ClassExtendsLibraryClass.java b/src/test/examples/memberrebinding2/ClassExtendsLibraryClass.java
new file mode 100644
index 0000000..9094360
--- /dev/null
+++ b/src/test/examples/memberrebinding2/ClassExtendsLibraryClass.java
@@ -0,0 +1,21 @@
+// Copyright (c) 2017, the R8 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.
+package memberrebinding2;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+
+public class ClassExtendsLibraryClass extends ArrayList<String> {
+
+ private static <T> void addOnArrayList(ArrayList<T> list, T item) {
+ list.add(item);
+ }
+
+ public void methodThatAddsHelloWorldUsingAddAll() {
+ // call this only on this type, so that it cannot be rebound to the interface.
+ String[] words = new String[]{"hello", "world"};
+ addAll(Arrays.asList(words));
+ }
+
+}