]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Tue, 27 Aug 2002 22:49:49 +0000 (22:49 +0000)
committerNo Author <no-author@gcc.gnu.org>
Tue, 27 Aug 2002 22:49:49 +0000 (22:49 +0000)
'gcc-3_2-branch'.

From-SVN: r56622

gcc/testsuite/g++.dg/abi/bitfield5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/vbase10.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/abi/bitfield5.C b/gcc/testsuite/g++.dg/abi/bitfield5.C
new file mode 100644 (file)
index 0000000..eed76e6
--- /dev/null
@@ -0,0 +1,14 @@
+// { dg-do compile } 
+// { dg-options "-Wabi" }
+
+struct A { 
+  virtual void f(); 
+  int f1 : 1; 
+};
+
+struct B : public A {
+  int f2 : 1;  // { dg-warning "ABI" }
+  int : 0;
+  int f3 : 4; 
+  int f4 : 3;
+};
diff --git a/gcc/testsuite/g++.dg/abi/vbase10.C b/gcc/testsuite/g++.dg/abi/vbase10.C
new file mode 100644 (file)
index 0000000..3c110be
--- /dev/null
@@ -0,0 +1,7 @@
+// { dg-do compile }
+// { dg-options "-Wabi" }
+
+struct A { virtual void f(); char c1; };
+struct B { B(); char c2; };
+struct C : public A, public virtual B {}; // { dg-warning "ABI" }
+