summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/break/bitfield5.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/compat/break/bitfield5.h')
-rw-r--r--gcc/testsuite/g++.dg/compat/break/bitfield5.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/compat/break/bitfield5.h b/gcc/testsuite/g++.dg/compat/break/bitfield5.h
new file mode 100644
index 000000000..6f7f012cc
--- /dev/null
+++ b/gcc/testsuite/g++.dg/compat/break/bitfield5.h
@@ -0,0 +1,11 @@
+struct A {
+ virtual void f();
+ int f1 : 1;
+};
+
+struct B : public A {
+ int f2 : 1;
+ int : 0;
+ int f3 : 4;
+ int f4 : 3;
+};