104494
|
1 /*
|
|
2 * Test variable and function names, lists of variables on one line, etc.
|
|
3 */
|
|
4
|
|
5 struct independent {
|
|
6 int indep_1;
|
|
7 int indep_2;
|
|
8 };
|
|
9
|
|
10 struct independent var_indep_struct;
|
|
11
|
|
12 struct {
|
|
13 int unnamed_1;
|
|
14 int unnamed_2;
|
|
15 } var_unamed_struct;
|
|
16
|
|
17 struct {
|
|
18 int unnamed_3;
|
|
19 int unnamed_4;
|
|
20 } var_un_2, var_un_3;
|
|
21
|
|
22 struct inlinestruct {
|
|
23 int named_1;
|
|
24 int named_2;
|
|
25 } var_named_struct;
|
|
26
|
|
27 struct inline2struct {
|
|
28 int named_3;
|
|
29 int named_4;
|
|
30 } var_n_2, var_n_3;
|
|
31
|
|
32 /* Structures with names that then declare variables
|
|
33 * should also be completable.
|
|
34 *
|
|
35 * Getting this to work is the bugfix in semantic-c.el CVS v 1.122
|
|
36 */
|
|
37 struct inlinestruct in_var1;
|
|
38 struct inline2struct in_var2;
|
|
39
|
|
40 int test_1(int var_arg1) {
|
|
41
|
|
42 var_// -1-
|
|
43 ; // #1# ("var_arg1" "var_indep_struct" "var_n_2" "var_n_3" "var_named_struct" "var_un_2" "var_un_3" "var_unamed_struct")
|
|
44
|
|
45 var_indep_struct.// -2-
|
|
46 ; // #2# ( "indep_1" "indep_2" )
|
|
47
|
|
48 var_unamed_struct.// -3-
|
|
49 ; // #3# ( "unnamed_1" "unnamed_2" )
|
|
50
|
|
51 var_named_struct.// -4-
|
|
52 ; // #4# ( "named_1" "named_2" )
|
|
53
|
|
54 var_un_2.// -5-
|
|
55 ; // #5# ( "unnamed_3" "unnamed_4" )
|
|
56 var_un_3.// -6-
|
|
57 ; // #6# ( "unnamed_3" "unnamed_4" )
|
|
58
|
|
59 var_n_2.// -7-
|
|
60 ; // #7# ( "named_3" "named_4" )
|
|
61 var_n_3.// -8-
|
|
62 ; // #8# ( "named_3" "named_4" )
|
|
63
|
|
64 in_// -9-
|
|
65 ; // #9# ( "in_var1" "in_var2" )
|
|
66
|
|
67 in_var1.// -10-
|
|
68 ; // #10# ( "named_1" "named_2")
|
|
69 in_var2.// -11-
|
|
70 ; // #11# ( "named_3" "named_4")
|
|
71 }
|
105377
|
72
|
|
73 /* arch-tag: ca9f23e9-0c66-4a5e-b233-3fdc841d3a63
|
|
74 (do not change this comment) */
|