aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/printcmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/printcmds.c')
-rw-r--r--gdb/testsuite/gdb.base/printcmds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/printcmds.c b/gdb/testsuite/gdb.base/printcmds.c
index 8eddeee..2d6668a 100644
--- a/gdb/testsuite/gdb.base/printcmds.c
+++ b/gdb/testsuite/gdb.base/printcmds.c
@@ -90,6 +90,12 @@ struct some_arrays {
struct some_arrays *parrays = &arrays;
+enum some_volatile_enum { enumvolval1, enumvolval2 };
+
+/* A volatile enum variable whose name is the same as the enumeration
+ name. See PR11827. */
+volatile enum some_volatile_enum some_volatile_enum = enumvolval1;
+
/* -- */
int main ()