1 // jprint.java test program.
4 // Free Software Foundation, Inc.
6 // Written by Jeff Johnston <jjohnstn@redhat.com>
7 // Contributed by Red Hat
9 // This file is part of GDB.
11 // This program is free software; you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation; either version 2 of the License, or
14 // (at your option) any later version.
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
21 // You should have received a copy of the GNU General Public License
22 // along with this program; if not, write to the Free Software
23 // Foundation, Inc., 59 Temple Place - Suite 330,
24 // Boston, MA 02111-1307, USA.
31 public static void addprint (int x
, int y
, int z
) {
33 System
.out
.println ("sum is " + sum
);
36 public int addk (int x
) {
38 System
.out
.println ("adding k gives " + sum
);
43 public class jprint
extends jvclass
{
44 public int dothat (int x
) {
46 System
.out
.println ("new value is " + y
);
49 public static void print (int x
) {
50 System
.out
.println("x is " + x
);
52 public static void print (int x
, int y
) {
53 System
.out
.println("y is " + y
);
55 public static void main(String
[] args
) {
56 jprint x
= new jprint ();