diff options
author | Yohann Roussel <yroussel@google.com> | 2014-09-09 11:47:06 +0200 |
---|---|---|
committer | Yohann Roussel <yroussel@google.com> | 2014-09-09 15:47:35 +0200 |
commit | ca1402550d9558baa7e63552962f5d357247da2e (patch) | |
tree | c42abe3ebede0591188c0de5be7cca64245b0c17 /jack-tests/tests/com/android/jack/lookup | |
parent | 74d354dff5febac9d5ffc11987ced4ed254392a5 (diff) | |
download | toolchain_jack-ca1402550d9558baa7e63552962f5d357247da2e.zip toolchain_jack-ca1402550d9558baa7e63552962f5d357247da2e.tar.gz toolchain_jack-ca1402550d9558baa7e63552962f5d357247da2e.tar.bz2 |
A test for phantom lookup conflicting with defined type.
Change-Id: I264614217ba3b4351a86acac8db50351bfc9d1f8
Diffstat (limited to 'jack-tests/tests/com/android/jack/lookup')
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(); + +} |