Commit bac4175b by Rainer Orth Committed by Rainer Orth

eh16.C: Rename err to e.

	* g++.old-deja/g++.mike/eh16.C: Rename err to e.
	* g++.old-deja/g++.mike/eh17.C: Likewise.
	* g++.old-deja/g++.mike/p5571.C: Likewise.

From-SVN: r156353
parent 1a048f82
2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* g++.old-deja/g++.mike/eh16.C: Rename err to e.
* g++.old-deja/g++.mike/eh17.C: Likewise.
* g++.old-deja/g++.mike/p5571.C: Likewise.
2010-01-29 Dodji Seketeli <dodji@redhat.com> 2010-01-29 Dodji Seketeli <dodji@redhat.com>
PR c++/42758 PR c++/42758
......
// { dg-do run { xfail sparc64-*-elf arm-*-pe } } // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" } // { dg-options "-fexceptions" }
int err = 1; int e = 1;
struct A { struct A {
~A() { ~A() {
--err; --e;
} }
}; };
...@@ -20,7 +20,7 @@ main() { ...@@ -20,7 +20,7 @@ main() {
try { try {
B b; B b;
} catch (...) { } catch (...) {
return err; return e;
} }
return 1; return 1;
} }
// { dg-do run { xfail sparc64-*-elf arm-*-pe } } // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" } // { dg-options "-fexceptions" }
int err = 1; int e = 1;
struct A { struct A {
~A() { ~A() {
--err; --e;
} }
}; };
...@@ -19,7 +19,7 @@ main() { ...@@ -19,7 +19,7 @@ main() {
try { try {
B b; B b;
} catch (...) { } catch (...) {
return err; return e;
} }
return 1; return 1;
} }
// { dg-do run } // { dg-do run }
// prms-id: 5571 // prms-id: 5571
int err = 0; int e = 0;
void *vp = 0; void *vp = 0;
class ParentOne { class ParentOne {
...@@ -36,7 +36,7 @@ struct Student : public Child { ...@@ -36,7 +36,7 @@ struct Student : public Child {
else else
{ {
if (vp != (void *)this) if (vp != (void *)this)
++err; ++e;
} }
} }
void LocalPrintThis() { void LocalPrintThis() {
...@@ -45,7 +45,7 @@ struct Student : public Child { ...@@ -45,7 +45,7 @@ struct Student : public Child {
else else
{ {
if (vp != (void *)this) if (vp != (void *)this)
++err; ++e;
} }
PrintThis(); PrintThis();
} }
...@@ -55,7 +55,7 @@ struct Student : public Child { ...@@ -55,7 +55,7 @@ struct Student : public Child {
else else
{ {
if (vp != (void *)this) if (vp != (void *)this)
++err; ++e;
} }
Student::PrintThis(); Student::PrintThis();
} }
...@@ -67,5 +67,5 @@ int main() { ...@@ -67,5 +67,5 @@ int main() {
o.ForcedPrintThis(); o.ForcedPrintThis();
Child* pX = &o; Child* pX = &o;
pX->PrintThis(); pX->PrintThis();
return err; return e;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment