OSDN Git Service

d3e28124b8f248223a865bb32d9aa565d62589cc
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900404_04.C
1 // g++ 1.37.1 bug 900404_04
2
3 // [dcl.dcl] explains that simple-declarations may omit the
4 // init-declarator-list only if the decl-specifier-seq declares a
5 // class, i.e. if it contains a class-specifier, an
6 // elaborated-type-specifier with class key, or an enum-specifier. The
7 // declaration below contains neither.
8
9 // g++ fails to flag errors for such usage.
10
11 // keywords: semicolon, vacuous, file scope, declaration
12
13 int i;
14
15 ;                       // ERROR - 
16
17 int main () { return 0; }