]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/eh5.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / eh5.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/eh5.C b/gcc/testsuite/g++.old-deja/g++.other/eh5.C
deleted file mode 100644 (file)
index 9d0acf4..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Build don't link:
-// Special g++ Options: -O2
-
-struct X {};
-
-struct Y
-{
-  Y();
-  virtual ~Y();
-};
-
-struct Z
-{
-  int f (const int *x);
-  int g;
-};
-
-inline int
-operator<< (Z &os, int x)
-{
-  os.f (&x);
-  return os.g;
-}
-
-void foo (Z &a, X *b, X &c)
-{
-  X *d = b;
-  int e = 0;
-  Z &f = a;
-  if (!(f << e))
-    do { do { } while (&c == 0); throw Y(); } while (0);
-  do { } while (&d == 0);
-  do { } while (&c == 0);
-}