2 Test variable and function names, lists of variables on one line, etc.
4 Copyright (C) 2008-2014 Free Software Foundation, Inc.
6 Author: Eric M. Ludlam <eric@siege-engine.com>
8 This file is part of GNU Emacs.
10 GNU Emacs is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
15 GNU Emacs is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
29 struct independent var_indep_struct
;
46 struct inline2struct
{
51 /* Structures with names that then declare variables
52 * should also be completable.
54 * Getting this to work is the bugfix in semantic-c.el CVS v 1.122
56 struct inlinestruct in_var1
;
57 struct inline2struct in_var2
;
59 int test_1(int var_arg1
) {
62 ; // #1# ("var_arg1" "var_indep_struct" "var_n_2" "var_n_3" "var_named_struct" "var_un_2" "var_un_3" "var_unnamed_struct")
64 var_indep_struct
.// -2-
65 ; // #2# ( "indep_1" "indep_2" )
67 var_unnamed_struct
.// -3-
68 ; // #3# ( "unnamed_1" "unnamed_2" )
70 var_named_struct
.// -4-
71 ; // #4# ( "named_1" "named_2" )
74 ; // #5# ( "unnamed_3" "unnamed_4" )
76 ; // #6# ( "unnamed_3" "unnamed_4" )
79 ; // #7# ( "named_3" "named_4" )
81 ; // #8# ( "named_3" "named_4" )
84 ; // #9# ( "in_var1" "in_var2" )
87 ; // #10# ( "named_1" "named_2")
89 ; // #11# ( "named_3" "named_4")