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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr37356.C] - Blame information for rev 308

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

Line No. Rev Author Line
1 301 jeremybenn
// PR middle-end/37356 */
2
// { dg-do compile }
3
// { dg-options "-O" }
4
 
5
bool foo ();
6
int bar ();
7
 
8
bool
9
baz (int v)
10
{
11
  return v == bar ();
12
}
13
 
14
struct A
15
{
16
  A () { baz (1) || foo (); }
17
};
18
 
19
struct B
20
{
21
  static A get () { return A (); }
22
  B (const int &x) { }
23
  B () : b (get ()) { }
24
  A b;
25
};
26
 
27
B c;
28
 
29
void
30
test ()
31
{
32
  int d;
33
  c = d;
34
}

powered by: WebSVN 2.1.0

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