xref: /llvm-project/lldb/test/Shell/SymbolFile/PDB/Inputs/PointerTypeTest.cpp (revision 87aa9c9e4d41ed881453e2fab85b3d25f648bb55)

main()1 int main() {
2   // Test pointer to array.
3   int array[2][4];
4   int(*array_pointer)[2][4] = &array;
5 
6   struct ST {
7     int a;
8     int f(int x) { return 1; }
9   };
10 
11   ST s = {10};
12 
13   // Test pointer to a local.
14   int *p_int = &s.a;
15 
16   // Test pointer to data member.
17   int ST::*p_member_field = &ST::a;
18 
19   // Test pointer to member function.
20   int (ST::*p_member_method)(int) = &ST::f;
21 
22   return 0;
23 }
24