URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [void1.C] - Rev 399
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