From 838ae13dc4ab603f1efdf1da653e2ca1b7b009e1 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 16 Apr 1999 01:33:56 +0000 Subject: Initial revision --- gdb/testsuite/gdb.c++/ref-types.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 gdb/testsuite/gdb.c++/ref-types.cc (limited to 'gdb/testsuite/gdb.c++/ref-types.cc') diff --git a/gdb/testsuite/gdb.c++/ref-types.cc b/gdb/testsuite/gdb.c++/ref-types.cc new file mode 100644 index 00000000000..8ee5c405d87 --- /dev/null +++ b/gdb/testsuite/gdb.c++/ref-types.cc @@ -0,0 +1,30 @@ +void marker1 (void) +{ + +} + + + +int main(void) +{ + short s; + short &rs = s; + short *ps; + short *&rps = ps; + short as[4]; + short (&ras)[4] = as; + s = -1; + ps = &s; + as[0] = 0; + as[1] = 1; + as[2] = 2; + as[3] = 3; + + #ifdef usestubs + set_debug_traps(); + breakpoint(); + #endif + marker1(); + + return 0; +} -- cgit v1.2.1