diff options
author | Tom Tromey <tromey@redhat.com> | 2002-12-19 06:40:03 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-12-19 06:40:03 +0000 |
commit | 453eac4a7d74f65a362d616656ef5d95dfe41f42 (patch) | |
tree | 8d11cb869438e8d5d76529f29d155a595dfb0749 /libjava/testsuite/libjava.lang/pr8945.java | |
parent | 5a0ba8c9eea209cab241dda53409c76d4a90d1c7 (diff) | |
download | gcc-453eac4a7d74f65a362d616656ef5d95dfe41f42.zip gcc-453eac4a7d74f65a362d616656ef5d95dfe41f42.tar.gz gcc-453eac4a7d74f65a362d616656ef5d95dfe41f42.tar.bz2 |
pr8945.java: New file.
* libjava.lang/pr8945.java: New file.
* libjava.lang/pr8945.out: New file.
From-SVN: r60286
Diffstat (limited to 'libjava/testsuite/libjava.lang/pr8945.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/pr8945.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/pr8945.java b/libjava/testsuite/libjava.lang/pr8945.java new file mode 100644 index 0000000..9c5dce8 --- /dev/null +++ b/libjava/testsuite/libjava.lang/pr8945.java @@ -0,0 +1,9 @@ +public class pr8945 +{ + public static void main(String[] args) + { + String foo = "hello"; + int pos = 3; + System.out.println(foo.substring(pos,++pos)); + } +} |