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

From-SVN: r62635

gcc/testsuite/gcc.dg/decl-2.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/decl-2.c b/gcc/testsuite/gcc.dg/decl-2.c
new file mode 100644 (file)
index 0000000..44fbc73
--- /dev/null
@@ -0,0 +1,10 @@
+/* PR c/7411 */
+/* Contributed by Christian Ehrhardt */
+/* { dg-do compile } */
+
+void foo(void)
+{
+  char c;  /* { dg-error "previous declaration" } */
+  int i;
+  int c = i;  /* { dg-error "conflicting types" } */
+}