aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20030625-1.c
diff options
context:
space:
mode:
authorJosef Zlomek <zlomekj@suse.cz>2003-06-25 08:30:46 +0200
committerJosef Zlomek <zlomek@gcc.gnu.org>2003-06-25 06:30:46 +0000
commit55a5d1f7142fcb3e5cfad518b987c20d441e78cd (patch)
tree9d2c9d1cbf0867558933031ecdefc07daa36ff3e /gcc/testsuite/gcc.dg/20030625-1.c
parenta53efda29d833176ba0ca887751eeab662074b4c (diff)
downloadgcc-55a5d1f7142fcb3e5cfad518b987c20d441e78cd.zip
gcc-55a5d1f7142fcb3e5cfad518b987c20d441e78cd.tar.gz
gcc-55a5d1f7142fcb3e5cfad518b987c20d441e78cd.tar.bz2
Test from http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02557.html
From-SVN: r68462
Diffstat (limited to 'gcc/testsuite/gcc.dg/20030625-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20030625-1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20030625-1.c b/gcc/testsuite/gcc.dg/20030625-1.c
new file mode 100644
index 0000000..4e78ae4
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20030625-1.c
@@ -0,0 +1,9 @@
+/* Testcase from http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02557.html */
+/* { dg-do compile } */
+/* { dg-options "-g" } */
+
+typedef struct _foo foo;
+struct _foo {
+ struct _moo moo; /* { dg-error "moo" "has incomplete type" } */
+};
+