URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [pr44086.C] - Rev 783
Compare with Previous | Blame | View Log
// PR c++/44086
// { dg-do compile }
struct A
{
int const i : 2; // { dg-message "should be initialized" }
};
void f()
{
A a; // { dg-error "uninitialized const" }
new A; // { dg-error "uninitialized const" }
A();
new A();
}