root/test/lisp/cedet/semantic-utest-ia-resources/testvarnames.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

     1 //  testvarnames.java --- Semantic unit test for Java
     2 
     3 // Copyright (C) 2009-2023 Free Software Foundation, Inc.
     4 
     5 //  Author: Eric M. Ludlam <zappo@gnu.org>
     6 
     7 //  This file is part of GNU Emacs.
     8 
     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.
    13 
    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.
    18 
    19 //  You should have received a copy of the GNU General Public License
    20 //  along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
    21 
    22 package tests;
    23 
    24 /**
    25  *
    26  *
    27  * Created: 02/17/14
    28  *
    29  * @author Eric M. Ludlam
    30  * @version
    31  * @since
    32  */
    33 public class testvarnames {
    34 
    35     public class varorclass {
    36         public static long misclongvalue;
    37     };
    38 
    39     public static varorclass varoftypevarorclass = NULL;
    40 
    41     public static long varorclass = 1;
    42 
    43     public static long assignintovar = 1;
    44 
    45     public static varorclass classassign = NULL;
    46 
    47     static public void main(String [] args) {
    48 
    49         varorclass = assign// -1-
    50             // #1# ( "assignintovar" )
    51             ;
    52 
    53         varoftypevarorclass = clas// -2-
    54             // #2# ( "classassign" )
    55 
    56         varoftypevarorclass.misc//-3-
    57             // #3# ( "misclongvalue" )
    58     }
    59 
    60 } // testvarnames

/* [<][>][^][v][top][bottom][index][help] */