]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.c++/ref-types.cc
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.c++ / ref-types.cc
1 void marker1 (void)
2 {
3
4 }
5
6
7
8 int main(void)
9 {
10 short s;
11 short &rs = s;
12 short *ps;
13 short *&rps = ps;
14 short as[4];
15 short (&ras)[4] = as;
16 s = -1;
17 ps = &s;
18 as[0] = 0;
19 as[1] = 1;
20 as[2] = 2;
21 as[3] = 3;
22
23 #ifdef usestubs
24 set_debug_traps();
25 breakpoint();
26 #endif
27 marker1();
28
29 return 0;
30 }