URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900404_04.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// g++ 1.37.1 bug 900404_04
// [dcl.dcl] explains that simple-declarations may omit the
// init-declarator-list only if the decl-specifier-seq declares a
// class, i.e. if it contains a class-specifier, an
// elaborated-type-specifier with class key, or an enum-specifier. The
// declaration below contains neither.
// g++ fails to flag errors for such usage.
// keywords: semicolon, vacuous, file scope, declaration
int i;
; // { dg-error "extra ';'" }
int main () { return 0; }