1 /* Testcase from http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02557.html */ 2 /* { dg-do compile } */ 3 /* { dg-options "-g" } */ 4 5 typedef struct _foo foo; 6 struct _foo { 7 struct _moo moo; /* { dg-error "moo" "has incomplete type" } */ 8 }; 9 10