aboutsummaryrefslogtreecommitdiff
path: root/gdb/testenum.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testenum.c')
-rw-r--r--gdb/testenum.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gdb/testenum.c b/gdb/testenum.c
deleted file mode 100644
index 3d85f5e..0000000
--- a/gdb/testenum.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Source file for showing ENUM lossage in GDB.
- Compile with "cc -o foo -g foo.c". */
-
-enum bar { value1, value2, value3 };
-
-struct foo {
- enum bar enum_value;
- int int_value;
- char *pointer_value;
-};
-
-struct foo foo_instance;
-struct foo *foo_instance_pointer;
-
-main ()
-{
- foo_instance_pointer = &foo_instance;
- foo_instance.enum_value = value2;
- foo_instance.int_value = 1;
- foo_instance.pointer_value = "Text to make a char *";
-
- /* In GDB, set a breakpoint at this line. Then try to change the
- value of foo_instance.enum_value in any way. I can't do it. */
-}
-