diff options
| author | Chong Yidong | 2009-09-28 23:23:31 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-09-28 23:23:31 +0000 |
| commit | 74ea13c1a8d63e4f4015e2b9e7e4336e546e7e4a (patch) | |
| tree | d895d7e93cf93022f48bd6d173f616f1bb4b99fc /test/cedet/tests/testjavacomp.java | |
| parent | b9de0a4665563f847bc7c94f8c89180bf2a9f6bd (diff) | |
| download | emacs-74ea13c1a8d63e4f4015e2b9e7e4336e546e7e4a.tar.gz emacs-74ea13c1a8d63e4f4015e2b9e7e4336e546e7e4a.zip | |
Add CEDET tests.
Diffstat (limited to 'test/cedet/tests/testjavacomp.java')
| -rw-r--r-- | test/cedet/tests/testjavacomp.java | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/test/cedet/tests/testjavacomp.java b/test/cedet/tests/testjavacomp.java new file mode 100644 index 00000000000..0c2604f5bf1 --- /dev/null +++ b/test/cedet/tests/testjavacomp.java | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | /** testjavacomp.java --- | ||
| 2 | * | ||
| 3 | * Copyright (C) 2009 Eric M. Ludlam | ||
| 4 | * | ||
| 5 | * Author: Eric M. Ludlam <eric@siege-engine.com> | ||
| 6 | * X-RCS: $Id: testjavacomp.java,v 1.1.2.1 2009/09/20 04:00:18 cyd Exp $ | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License as | ||
| 10 | * published by the Free Software Foundation; either version 2, or (at | ||
| 11 | * your option) any later version. | ||
| 12 | * | ||
| 13 | * This program is distributed in the hope that it will be useful, but | ||
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 16 | * General Public License for more details. | ||
| 17 | * | ||
| 18 | * You should have received a copy of the GNU General Public License | ||
| 19 | * along with this program; see the file COPYING. If not, write to | ||
| 20 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
| 21 | * Boston, MA 02110-1301, USA. | ||
| 22 | */ | ||
| 23 | |||
| 24 | package tests.testjavacomp; | ||
| 25 | |||
| 26 | class secondClass { | ||
| 27 | private void scFuncOne() { } | ||
| 28 | public void scFuncOne() { } | ||
| 29 | } | ||
| 30 | |||
| 31 | |||
| 32 | public class testjavacomp { | ||
| 33 | |||
| 34 | private int funcOne() { } | ||
| 35 | private int funcTwo() { } | ||
| 36 | private char funcThree() { } | ||
| 37 | |||
| 38 | class nestedClass { | ||
| 39 | private void ncFuncOne() { } | ||
| 40 | public void ncFuncOne() { } | ||
| 41 | } | ||
| 42 | |||
| 43 | public void publicFunc() { | ||
| 44 | |||
| 45 | int i; | ||
| 46 | |||
| 47 | i = fu// -1- | ||
| 48 | // #1# ( "funcOne" "funcTwo" ) | ||
| 49 | ; | ||
| 50 | |||
| 51 | fu// -2- | ||
| 52 | // #2# ( "funcOne" "funcThree" "funcTwo" ) | ||
| 53 | ; | ||
| 54 | |||
| 55 | secondClass SC; | ||
| 56 | |||
| 57 | SC.//-3- | ||
| 58 | // #3# ( "scFuncOne" ) | ||
| 59 | ; | ||
| 60 | |||
| 61 | nestedClass NC; | ||
| 62 | |||
| 63 | // @todo - need to fix this? I don't know if this is legal java. | ||
| 64 | NC.// - 4- | ||
| 65 | // #4# ( "ncFuncOne" ) | ||
| 66 | ; | ||
| 67 | } | ||
| 68 | |||
| 69 | } // testjavacomp | ||