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/] [ref18.C] - Rev 783
Compare with Previous | Blame | View Log
// PR c++/49395
volatile int foo();
struct A { volatile int i; };
typedef volatile int vi;
volatile int i;
const int& ir1 = foo();
//const int& ir2 = A().i; // line 8
const int& ir3 = static_cast<volatile int>(i);
const int& ir4 = vi(); // line 10