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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [eh5.C] - Blame information for rev 844

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// { dg-options "-O2" }
3
 
4
struct X {};
5
 
6
struct Y
7
{
8
  Y();
9
  virtual ~Y();
10
};
11
 
12
struct Z
13
{
14
  int f (const int *x);
15
  int g;
16
};
17
 
18
inline int
19
operator<< (Z &os, int x)
20
{
21
  os.f (&x);
22
  return os.g;
23
}
24
 
25
void foo (Z &a, X *b, X &c)
26
{
27
  X *d = b;
28
  int e = 0;
29
  Z &f = a;
30
  if (!(f << e))
31
    do { do { } while (&c == 0); throw Y(); } while (0);
32
  do { } while (&d == 0);
33
  do { } while (&c == 0);
34
}

powered by: WebSVN 2.1.0

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