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/] [900325_01.C] - Rev 20
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// g++ 1.37.1 bug 900325_01
// g++ fails to generate errors for attempts to declare a formal argument to
// be of a void type.
// keywords: formal parameter, void type
typedef void __void;
typedef __void Void;
void function0 (void arg1) { // { dg-error "" } missed
}
void function1 (Void arg1) { // { dg-error "" } missed
}
int main () { return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log