diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/pr101606.aj | 5 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 7 |
3 files changed, 15 insertions, 1 deletions
diff --git a/tests/bugs150/pr101606.aj b/tests/bugs150/pr101606.aj new file mode 100644 index 000000000..db234e3c4 --- /dev/null +++ b/tests/bugs150/pr101606.aj @@ -0,0 +1,5 @@ +public aspect pr101606 { + + private pointcut foo(); + +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index 2cf9dc7a9..5db8119d1 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -378,6 +378,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("synchronized itd interface methods"); } + public void testNoWarningOnUnusedPointcut() { + runTest("unused private pointcuts"); + } + // helper methods..... public SyntheticRepository createRepos(File cpentry) { diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 7814d3cd8..aba23f729 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -468,7 +468,12 @@ </compile> <run class="SynchronizedInterfaceMethods"/> </ajc-test> - + + <ajc-test dir="bugs150" pr="101606" title="unused private pointcuts"> + <compile files="pr101606.aj" options="-warn:unusedPrivate"> + </compile> + </ajc-test> + <!-- ============================================================================ --> <!-- ============================================================================ --> |