Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900404_04.C
blob04ff66905498c3dedc2cff1f6aab23afbb4234bd
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900404_04
4 // [dcl.dcl] explains that simple-declarations may omit the
5 // init-declarator-list only if the decl-specifier-seq declares a
6 // class, i.e. if it contains a class-specifier, an
7 // elaborated-type-specifier with class key, or an enum-specifier. The
8 // declaration below contains neither.
10 // g++ fails to flag errors for such usage.
12 // keywords: semicolon, vacuous, file scope, declaration
14 int i;
16 ;                       // { dg-error "extra ';'" } 
18 int main () { return 0; }