LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / anon-struct-8.c
blob66db0834ef2b60ee501fb9beb26de4f58a853506
1 /* Test diagnostics for structure member with no type specifier or
2 declarator. Test with -pedantic-errors. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-pedantic-errors" } */
7 struct s {
8 int a;
9 const; /* { dg-error "ISO C forbids member declarations with no members" } */