OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [ref18.C] - Rev 704

Go to most recent revision | 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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.