OSDN Git Service

62c982d91c1f9f2c0af555acb613354c465c2cfb
[pf3gnuchains/sourceware.git] / gdb / testsuite / gdb.c++ / ref-types2.cc
1 int f()
2 {
3     int f1;
4     f1 = 1;
5     return f1;
6 }
7
8 int main(void)
9 {
10     char C;
11     unsigned char UC;
12     short S;
13     unsigned short US;
14     int I;
15     unsigned int UI;
16     long L;
17     unsigned long UL;
18     float F;
19     double D;
20     char &rC = C;
21     unsigned char &rUC = UC;
22     short &rS = S;
23     unsigned short &rUS = US;
24     int &rI = I;
25     unsigned int &rUI = UI;
26     long &rL = L;
27     unsigned long &rUL = UL;
28     float &rF = F;
29     double &rD = D;
30     C = 'A';
31     UC = 21;
32     S = -14;
33     US = 7;
34     I = 102;
35     UI = 1002;
36     L = -234;
37     UL = 234;
38     F = 1.25E10;
39     D = -1.375E-123;
40     I = f();
41     #ifdef usestubs
42        set_debug_traps();
43        breakpoint();
44     #endif
45     return 0;
46     
47 }