diff options
author | Andrew Haley <aph@redhat.com> | 2016-09-30 16:24:48 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2016-09-30 16:24:48 +0000 |
commit | 07b78716af6a9d7c9fd1e94d9baf94a52c873947 (patch) | |
tree | 3f22b3241c513ad168c8353805614ae1249410f4 /libjava/testsuite/libjava.lang/Throw_3.java | |
parent | eae993948bae8b788c53772bcb9217c063716f93 (diff) | |
download | gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.zip gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.gz gcc-07b78716af6a9d7c9fd1e94d9baf94a52c873947.tar.bz2 |
Makefile.def: Remove libjava.
2016-09-30 Andrew Haley <aph@redhat.com>
* Makefile.def: Remove libjava.
* Makefile.tpl: Likewise.
* Makefile.in: Regenerate.
* configure.ac: Likewise.
* configure: Likewise.
* gcc/java: Remove.
* libjava: Likewise.
From-SVN: r240662
Diffstat (limited to 'libjava/testsuite/libjava.lang/Throw_3.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/Throw_3.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/libjava/testsuite/libjava.lang/Throw_3.java b/libjava/testsuite/libjava.lang/Throw_3.java deleted file mode 100644 index 5d9a2dc..0000000 --- a/libjava/testsuite/libjava.lang/Throw_3.java +++ /dev/null @@ -1,41 +0,0 @@ -// Check that a NPE likely thrown from the first instruction of a -// method (foo) is properly caught. -public class Throw_3 -{ - public static void main(String[] args) - { - Throw_3 al = new Throw_3(); - try - { - al.foo(null); - } - catch (NullPointerException npe) - { - StackTraceElement ste[] = npe.getStackTrace(); - StackTraceElement top = ste[0]; - if ("foo".equals(top.getMethodName())) - { - System.out.println("ok"); - return; - } - } - System.out.println("bad"); - } - - public int bar(int[] a) - { - System.out.println("Bar"); - return 5; - } - - /** - * If the second parameter ('this' being the first) is passed in a - * register, then the first machine instruction in foo is likely to - * fault when null is passed. - */ - public int foo(int[] a) - { - int l = a.length; - return l + l; - } -} |