1 typedef int IntTypedef
;
2 IntTypedef g_IntVar
; // Testing globals.
4 typedef enum Enum
{ // Testing constants.
9 EnumTypedef g_EnumVar
; // Testing members.
11 // FIXME: `sg_IntVar` appears both in global scope's children and compiland's
12 // children but with different symbol's id.
13 static int sg_IntVar
= -1; // Testing file statics.
15 // FIXME: `g_Const` appears both in global scope's children and compiland's
16 // children but with different symbol's id.
17 const int g_Const
= 0x88; // Testing constant data.
18 const int *g_pConst
= &g_Const
; // Avoid optimizing the const away
20 thread_local
int g_tls
= 0; // Testing thread-local storage.
23 static int m_StaticClassMember
;
25 explicit Class(int a
) {}
28 int Class::m_StaticClassMember
= 10; // Testing static class members.
31 int f(int var_arg1
, int var_arg2
) { // Testing parameters.
32 long same_name_var
= -1;
36 int same_name_var
= 100;
38 int same_name_var
= 0; // Testing locals.
39 const char local_const
= 0x1;
41 // FIXME: 'local_CString` is not found through compiland's children.
42 const char local_CString
[] = "abc"; // Testing constant string.
43 const char *local_pCString
= local_CString
; // Avoid optimizing the const away