aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs160/pr214559/DeclareParentsPrecedenceTest.java
diff options
context:
space:
mode:
authoraclement <aclement>2008-02-20 21:07:44 +0000
committeraclement <aclement>2008-02-20 21:07:44 +0000
commit09bd9cbc83d87fa910e323003707a1ae95a96750 (patch)
treef78066032cdc093ffed8113603cbd74313465c30 /tests/bugs160/pr214559/DeclareParentsPrecedenceTest.java
parentf836185807e97bdd7f300a5f615b6234b84d1ee6 (diff)
downloadaspectj-09bd9cbc83d87fa910e323003707a1ae95a96750.tar.gz
aspectj-09bd9cbc83d87fa910e323003707a1ae95a96750.zip
214559: tests and fix: cope with varying orderings for interdependant declare parents statements.
Diffstat (limited to 'tests/bugs160/pr214559/DeclareParentsPrecedenceTest.java')
-rw-r--r--tests/bugs160/pr214559/DeclareParentsPrecedenceTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bugs160/pr214559/DeclareParentsPrecedenceTest.java b/tests/bugs160/pr214559/DeclareParentsPrecedenceTest.java
new file mode 100644
index 000000000..fdf77f02c
--- /dev/null
+++ b/tests/bugs160/pr214559/DeclareParentsPrecedenceTest.java
@@ -0,0 +1,8 @@
+
+public class DeclareParentsPrecedenceTest {
+ public static void main(String[]argv) {
+ TestClass t = new TestClass();
+ if (!(t instanceof Interface1)) throw new RuntimeException("t not instanceof Interface1");
+ if (!(t instanceof Interface1TestClass)) throw new RuntimeException("t not instanceof Interface1TestClass");
+ }
+}