Fix compilation warnings on MS-DOS due to constifying of pointers in xmenu.c.
[emacs.git] / test / cedet / tests / testjavacomp.java
blobe9aed8c51f32aad17cb3d28441c7e6c15a808374
1 // testjavacomp.java --- Semantic unit test for Java
3 // Copyright (C) 2009-2011 Free Software Foundation, Inc.
5 // Author: Eric M. Ludlam <eric@siege-engine.com>
7 // This file is part of GNU Emacs.
9 // GNU Emacs is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
14 // GNU Emacs is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License
20 // along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 package tests.testjavacomp;
24 class secondClass {
25 private void scFuncOne() { }
26 public void scFuncOne() { }
30 public class testjavacomp {
32 private int funcOne() { }
33 private int funcTwo() { }
34 private char funcThree() { }
36 class nestedClass {
37 private void ncFuncOne() { }
38 public void ncFuncOne() { }
41 public void publicFunc() {
43 int i;
45 i = fu// -1-
46 // #1# ( "funcOne" "funcTwo" )
49 fu// -2-
50 // #2# ( "funcOne" "funcThree" "funcTwo" )
53 secondClass SC;
55 SC.//-3-
56 // #3# ( "scFuncOne" )
59 nestedClass NC;
61 // @todo - need to fix this? I don't know if this is legal java.
62 NC.// - 4-
63 // #4# ( "ncFuncOne" )
67 } // testjavacomp