OSDN Git Service

* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr18596-3.c
index be17e7c..74a6e63 100644 (file)
@@ -6,9 +6,8 @@ int foo ()
   static g () = 0; /* { dg-error "invalid storage class" } */
   static int f () = 1; /* { dg-error "invalid storage class" } */
   auto int h () = 0; /* { dg-error "initialized like a variable" } */
+  /* { dg-error "declared but never defined" "nested" { target *-*-* } 8 } */
   static int i () = { 0 }; /* { dg-error "invalid storage class" } */
   static int j () = /* { dg-error "invalid storage class" } */
        { 0, 0.0 };
 }
-/* { dg-warning "excess elements" "" { target *-*-* } 11 } */
-/* { dg-warning "near initialization" "" { target *-*-* } 11 } */