3 // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s \
10 // CHECK: <Declaration>int global_function()</Declaration>
15 extern void external_function(int x1
);
16 // CHECK: <Declaration>extern void external_function(int x1)</Declaration>
19 * \brief global variable;
22 // CHECK: <Declaration>int global_variable</Declaration>
25 * \brief local variable;
27 static int static_variable
;
28 // CHECK: <Declaration>static int static_variable</Declaration>
31 * \brief external variable
33 extern int external_variable
;
34 // CHECK: <Declaration>extern int external_variable</Declaration>
36 int global_function() {
38 * \brief a local variable
43 // CHECK: <Declaration>int global_function()</Declaration>
44 // CHECK: <Declaration>int local = 10</Declaration>
47 * \brief initialized decl.
49 int initialized_global
= 100;
50 // CHECK: <Declaration>int initialized_global = 100</Declaration>
53 * \brief typedef example
56 // CHECK: <Declaration>typedef int INT_T</Declaration>
59 * \brief aggregate type example
71 // CHECK: <Declaration>struct S {}</Declaration>
72 // CHECK: <Declaration>int iS1</Declaration>
73 // CHECK: <Declaration>double dS1</Declaration>
86 // CHECK: <Declaration>enum e {}</Declaration>
87 // CHECK: <Declaration>Two</Declaration>
90 *\brief block declaration
92 int (^Block
) (int i
, int j
);
93 // CHECK: <Declaration>int (^Block)(int, int)</Declaration>
96 *\brief block declaration
98 int (^Block1
) (int i
, int j
) = ^(int i
, int j
) { return i
+ j
; };
99 // CHECK: <Declaration>int (^Block1)(int, int) = ^(int i, int j) {\n}</Declaration>