This commit was manufactured by cvs2svn to create branch 'gomp-branch'.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr17724-6.C
blobf95c4d0efbb635ccd0dc0fcbc9c4acfd60c1f591
1 // PR tree-optimization/17724
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 extern char *strcpy (char* d, const char* s);
7 class A { public: A (); ~A (); };
9 inline char * B (char *s, const char *t)
10 { return ::strcpy (s, t); }
12 class C { int D (void); int E; };
14 int C::D (void)
16   A a;
17   try
18     {
19       char z[22];
20       if (this->E) B (z, "");
21       return 0;
22     }
23   catch (int &f) { return -1; }