aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs164/pr266420
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs164/pr266420')
-rw-r--r--tests/bugs164/pr266420/A.java9
-rw-r--r--tests/bugs164/pr266420/B.java3
-rw-r--r--tests/bugs164/pr266420/C.java10
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs164/pr266420/A.java b/tests/bugs164/pr266420/A.java
new file mode 100644
index 000000000..bde83bce5
--- /dev/null
+++ b/tests/bugs164/pr266420/A.java
@@ -0,0 +1,9 @@
+public class A {
+ private int i;
+}
+
+privileged aspect X {
+ public int A.foo() {
+ return i;
+ }
+}
diff --git a/tests/bugs164/pr266420/B.java b/tests/bugs164/pr266420/B.java
new file mode 100644
index 000000000..42297637c
--- /dev/null
+++ b/tests/bugs164/pr266420/B.java
@@ -0,0 +1,3 @@
+public class B {
+ private int i;
+}
diff --git a/tests/bugs164/pr266420/C.java b/tests/bugs164/pr266420/C.java
new file mode 100644
index 000000000..b090efbc9
--- /dev/null
+++ b/tests/bugs164/pr266420/C.java
@@ -0,0 +1,10 @@
+public class C {
+ private int i;
+ private int j;
+}
+
+privileged aspect X {
+ public void C.m() {
+ i = 5;
+ }
+}