summaryrefslogtreecommitdiffstats
path: root/jack-tests/tests
diff options
context:
space:
mode:
authorYohann Roussel <yroussel@google.com>2014-09-09 15:20:00 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-09-09 15:20:01 +0000
commit431ed35b8553cdb411733b3adefc453e88703725 (patch)
tree6018b5a45713d8c77a8115d584c37fbb08f18772 /jack-tests/tests
parent6702d04ba66302957b7d9fd333a80684015ee6ce (diff)
parentca1402550d9558baa7e63552962f5d357247da2e (diff)
downloadtoolchain_jack-431ed35b8553cdb411733b3adefc453e88703725.zip
toolchain_jack-431ed35b8553cdb411733b3adefc453e88703725.tar.gz
toolchain_jack-431ed35b8553cdb411733b3adefc453e88703725.tar.bz2
Merge "A test for phantom lookup conflicting with defined type." into ub-jack
Diffstat (limited to 'jack-tests/tests')
-rw-r--r--jack-tests/tests/com/android/jack/lookup/test001/jack/Invoking.java27
-rw-r--r--jack-tests/tests/com/android/jack/lookup/test001/lib/I.java23
-rw-r--r--jack-tests/tests/com/android/jack/lookup/test001/liboverride/I.java23
3 files changed, 73 insertions, 0 deletions
diff --git a/jack-tests/tests/com/android/jack/lookup/test001/jack/Invoking.java b/jack-tests/tests/com/android/jack/lookup/test001/jack/Invoking.java
new file mode 100644
index 0000000..0f5b196
--- /dev/null
+++ b/jack-tests/tests/com/android/jack/lookup/test001/jack/Invoking.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.jack.lookup.test001.jack;
+
+import com.android.jack.lookup.test001.lib.I;
+
+public class Invoking {
+
+ public static void m(I i) {
+ i.m();
+ }
+
+}
diff --git a/jack-tests/tests/com/android/jack/lookup/test001/lib/I.java b/jack-tests/tests/com/android/jack/lookup/test001/lib/I.java
new file mode 100644
index 0000000..536f5fe
--- /dev/null
+++ b/jack-tests/tests/com/android/jack/lookup/test001/lib/I.java
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.jack.lookup.test001.lib;
+
+public interface I {
+
+ void m();
+
+}
diff --git a/jack-tests/tests/com/android/jack/lookup/test001/liboverride/I.java b/jack-tests/tests/com/android/jack/lookup/test001/liboverride/I.java
new file mode 100644
index 0000000..ff506e4
--- /dev/null
+++ b/jack-tests/tests/com/android/jack/lookup/test001/liboverride/I.java
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.jack.lookup.test001.lib;
+
+public abstract class I {
+
+ public abstract void m();
+
+}