]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 10 Feb 2005 01:10:11 +0000 (01:10 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 10 Feb 2005 01:10:11 +0000 (01:10 +0000)
'gcc-3_4-branch'.

From-SVN: r94790

gcc/testsuite/g++.dg/conversion/ambig1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/attrib19.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/dtor3.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr18502-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/conversion/ambig1.C b/gcc/testsuite/g++.dg/conversion/ambig1.C
new file mode 100644 (file)
index 0000000..42ac403
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/19787
+
+struct H {
+  operator char(); // { dg-error "" }
+  operator short(); // { dg-error "" }
+};
+
+int const& ref = H(); // { dg-error "" }
diff --git a/gcc/testsuite/g++.dg/ext/attrib19.C b/gcc/testsuite/g++.dg/ext/attrib19.C
new file mode 100644 (file)
index 0000000..f1362c3
--- /dev/null
@@ -0,0 +1,10 @@
+// PR c++/19739
+
+void Dummy() __attribute__(( , ));
+void Dummy() {}
+
+int main (int argc, char **argv)
+{
+    Dummy();
+    return 0;
+}
diff --git a/gcc/testsuite/g++.dg/template/dtor3.C b/gcc/testsuite/g++.dg/template/dtor3.C
new file mode 100644 (file)
index 0000000..7f40998
--- /dev/null
@@ -0,0 +1,4 @@
+// PR c++/19762
+
+template<int> struct A { ~A(){} }; // { dg-error "" }
+template A<>::~A(); // { dg-error "" }
diff --git a/gcc/testsuite/gcc.dg/pr18502-1.c b/gcc/testsuite/gcc.dg/pr18502-1.c
new file mode 100644 (file)
index 0000000..038c810
--- /dev/null
@@ -0,0 +1,7 @@
+/* Test that -trigraphs isn't reordered before -std=gnu99.  Bug
+   18502.  */
+/* Origin: Joseph Myers <joseph@codesourcery.com> */
+/* { dg-do compile } */
+/* { dg-options "-std=gnu99 -trigraphs" } */
+
+int a??(2??);