summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/test126
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-08-04 12:04:41 +0000
committeracolyer <acolyer>2004-08-04 12:04:41 +0000
commit0f211e17cac9b031ab8d9115f9030b3e65d3927a (patch)
treecabe16f0e367daaa4b28685e09f5b0bcd55bb43d /tests/pureJava/test126
parent9a051d348a240095e56ead5485c2dba8cf6ad4a7 (diff)
downloadaspectj-0f211e17cac9b031ab8d9115f9030b3e65d3927a.tar.gz
aspectj-0f211e17cac9b031ab8d9115f9030b3e65d3927a.zip
Spring cleaning in the test suite. Docs for AjcTestCase and XMLBasedAjcTestCase
added in docs dir.
Diffstat (limited to 'tests/pureJava/test126')
-rw-r--r--tests/pureJava/test126/Driver.java18
-rw-r--r--tests/pureJava/test126/Readme.txt7
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/pureJava/test126/Driver.java b/tests/pureJava/test126/Driver.java
new file mode 100644
index 000000000..e855c5781
--- /dev/null
+++ b/tests/pureJava/test126/Driver.java
@@ -0,0 +1,18 @@
+public class Driver {
+ public static void main(String[] args) { test(); }
+
+ public static void test() {
+
+ // local variable declaration in the init part of a for
+ for (int i = 0, j = 0; j < 10 ; i++, j++) {
+ j++;
+ }
+ int m, n, j = 0;
+
+ // init part without local var declaration
+ for (m = 0, n = 0; j < 10 ; m++, n++) {
+ j++;
+ m++;
+ }
+ }
+}
diff --git a/tests/pureJava/test126/Readme.txt b/tests/pureJava/test126/Readme.txt
new file mode 100644
index 000000000..b4b666098
--- /dev/null
+++ b/tests/pureJava/test126/Readme.txt
@@ -0,0 +1,7 @@
+Mode: VM run
+Title: For Statement
+
+This tests the weaving of For statements. More variants of the for
+statement can be added to the test. The current test only checks for
+variation in the init part of the for loop.
+