From 0f211e17cac9b031ab8d9115f9030b3e65d3927a Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 4 Aug 2004 12:04:41 +0000 Subject: Spring cleaning in the test suite. Docs for AjcTestCase and XMLBasedAjcTestCase added in docs dir. --- tests/pureJava/test126/Driver.java | 18 ++++++++++++++++++ tests/pureJava/test126/Readme.txt | 7 +++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/pureJava/test126/Driver.java create mode 100644 tests/pureJava/test126/Readme.txt (limited to 'tests/pureJava/test126') 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. + -- cgit v1.2.3