Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / eh5.C
blob59ed4dd5bd925122cdbf590647773ed3827bc257
1 // { dg-do assemble  }
2 // { dg-options "-O2" }
4 struct X {};
6 struct Y
8   Y();
9   virtual ~Y();
12 struct Z
14   int f (const int *x);
15   int g;
18 inline int
19 operator<< (Z &os, int x)
21   os.f (&x);
22   return os.g;
25 void foo (Z &a, X *b, X &c)
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);