URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900404_04.C] - Rev 307
Go to most recent revision | 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; }
Go to most recent revision | Compare with Previous | Blame | View Log