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++.dg/] [other/] [void1.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/9278
// { dg-do compile }
typedef void VOID;
int foo(void);
int bar(VOID); // { dg-error "type|invalid use" }
template<int> int foo(void);
template<int> int bar(VOID); // { dg-error "type|invalid use" }
struct A
{
int foo(void);
int bar(VOID); // { dg-error "type|invalid use" }
};
Go to most recent revision | Compare with Previous | Blame | View Log