aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/misc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.c++/misc.cc')
-rw-r--r--gdb/testsuite/gdb.c++/misc.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.c++/misc.cc b/gdb/testsuite/gdb.c++/misc.cc
index 4cf9318..7c212cc 100644
--- a/gdb/testsuite/gdb.c++/misc.cc
+++ b/gdb/testsuite/gdb.c++/misc.cc
@@ -1,5 +1,9 @@
// Test various -*- C++ -*- things.
+// ====================== basic C++ types =======================
+bool v_bool;
+bool v_bool_array[2];
+
typedef struct fleep fleep;
struct fleep { int a; } s;
@@ -477,6 +481,14 @@ register_class ()
return v.x + 5;
}
+void dummy()
+{
+ v_bool = true;
+ v_bool_array[0] = false;
+ v_bool_array[1] = v_bool;
+}
+
+
int
main()
{
@@ -484,6 +496,7 @@ main()
set_debug_traps();
breakpoint();
#endif
+ dummy();
inheritance1 ();
inheritance3 ();
register_class ();