aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/abi/bitfield1.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/compat/abi/bitfield1.h')
-rw-r--r--gcc/testsuite/g++.dg/compat/abi/bitfield1.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/compat/abi/bitfield1.h b/gcc/testsuite/g++.dg/compat/abi/bitfield1.h
new file mode 100644
index 00000000000..09d64162ff3
--- /dev/null
+++ b/gcc/testsuite/g++.dg/compat/abi/bitfield1.h
@@ -0,0 +1,10 @@
+typedef int Int;
+typedef signed int SInt;
+typedef unsigned int UInt;
+
+struct A
+{
+ SInt bitS : 1; // signed
+ UInt bitU : 1; // unsigned
+ Int bit : 1; // signedness by -f{signed,unsigned}-bitfields
+};