]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.base/pointers2.c
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / pointers2.c
1 void marker1 ()
2 {
3
4 }
5
6
7 int main()
8 {
9 char C, *pC, **ppC, ***pppC, ****ppppC, *****pppppC, ******ppppppC;
10 unsigned char UC, *pUC;
11 short S, *pS;
12 unsigned short US, *pUS;
13 int I, *pI;
14 unsigned int UI, *pUI;
15 long L, *pL;
16 unsigned long UL, *pUL;
17 float F, *pF;
18 double D, *pD;
19 C = 'A';
20 UC = 21;
21 S = -14;
22 US = 7;
23 I = 102;
24 UI = 1002;
25 L = -234;
26 UL = 234;
27 F = 1.25E10;
28 D = -1.375E-123;
29 pC = &C;
30 ppC = &pC;
31 pppC = &ppC;
32 ppppC = &pppC;
33 pppppC = &ppppC;
34 ppppppC = &pppppC;
35 pUC = &UC;
36 pS = &S;
37 pUS = &US;
38 pI = &I;
39 pUI = &UI;
40 pL = &L;
41 pUL = &UL;
42 pF = &F;
43 pD = &D;
44
45 #ifdef usestubs
46 set_debug_traps();
47 breakpoint();
48 #endif
49 marker1();
50 return 0;
51 }