aboutsummaryrefslogtreecommitdiff
path: root/gdb/testbit.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testbit.c')
-rw-r--r--gdb/testbit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testbit.c b/gdb/testbit.c
new file mode 100644
index 0000000..9359f0b
--- /dev/null
+++ b/gdb/testbit.c
@@ -0,0 +1,12 @@
+struct foo
+{
+ unsigned bar : 1;
+ unsigned lose : 1;
+};
+
+main ()
+{
+ struct foo *win;
+
+ printf ("%d, %d\n", win->bar, win->lose);
+}