Extend inlining to allow invokes.

Also extend the oracle to hand package private and protected access modifiers
correctly.

Bug:
Change-Id: I1b592660842d4d81dd508e69f7c5641860f11633
diff --git a/src/test/examples/inlining/pkg/OtherPublicClass.java b/src/test/examples/inlining/pkg/OtherPublicClass.java
new file mode 100644
index 0000000..4d781d9
--- /dev/null
+++ b/src/test/examples/inlining/pkg/OtherPublicClass.java
@@ -0,0 +1,20 @@
+// 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 inlining.pkg;
+
+public class OtherPublicClass {
+
+  public static String callsMethodThatCallsPackagePrivateMethod() {
+    return PublicClass.callsPackagePrivateMethod();
+  }
+
+  public static String callsMethodThatCallsProtectedMethod() {
+    return PublicClass.callsProtectedMethod();
+  }
+
+  public static int callsMethodThatReadsFieldInPackagePrivateClass() {
+    return PublicClass.readsPackagePrivateField();
+  }
+
+}