URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [noeffect6.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options "-Wall" }
// PR c++/15083
extern "C" int printf(const char*,...);
struct Counter {
Counter(){printf("Hello World.\n");}
};
template< typename T >
void resetData() {
new Counter();
}
int main() {
resetData<int>();
}
Go to most recent revision | Compare with Previous | Blame | View Log