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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [cond6.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/11283
2
// Converting "a" to the type of "i" produces "int" rather than "const
3
// int", which was causing build_conditional_expr to abort.  But we don't
4
// care about cv-quals on non-class rvalues.
5
 
6
struct A
7
{
8
  operator int ();
9
};
10
 
11
extern A a;
12
extern const int i;
13
extern bool b;
14
 
15
int f ()
16
{
17
  return b ? a : i;
18
}

powered by: WebSVN 2.1.0

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