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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [expr/] [for2.C] - Blame information for rev 754

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// PR c++/17661
3
// We used to try to create a temprary for the condition
4
// expression in the for which was wrong.
5
 
6
 
7
struct C
8
{
9
  C (const C &x);
10
};
11
C &f();
12
void breakme (C j, bool k)
13
{
14
  for (;; k ? j : f())  ;
15
}

powered by: WebSVN 2.1.0

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