From: Geoffrey Keating Date: Wed, 18 Oct 2006 20:09:39 +0000 (+0000) Subject: eb133b.C: Add XFAILed error for 'using namespace std' without previous declaration. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4c7fca31fc7b4dfa02e9c25d3c8f032523c3b96;p=gcc.git eb133b.C: Add XFAILed error for 'using namespace std' without previous declaration. * g++.old-deja/g++.robertl/eb133b.C: Add XFAILed error for 'using namespace std' without previous declaration. * g++.old-deja/g++.robertl/eb133.C: Remove, exact dup of eb133b.C. * g++.old-deja/g++.robertl/eb133c.C: New. From-SVN: r117862 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5080ad4913a..40e89cc77bd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2006-10-18 Geoffrey Keating + + * g++.old-deja/g++.robertl/eb133b.C: Add XFAILed error for + 'using namespace std' without previous declaration. + * g++.old-deja/g++.robertl/eb133.C: Remove, exact dup of eb133b.C. + * g++.old-deja/g++.robertl/eb133c.C: New. + 2006-10-17 Jerry DeLisle PR libgfortran/29277 diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb133.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb133.C deleted file mode 100644 index 419a36efd4b..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb133.C +++ /dev/null @@ -1,17 +0,0 @@ -// { dg-do assemble } -// Gives ICE 109 -// From: Klaus-Georg Adams -// Reported against EGCS snaps 98/06/28. - -using namespace std; - -int main() -{ - try { - } - catch (bad_alloc) { // { dg-error "" } - return 1; - } - return 0; -} - diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb133b.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb133b.C index 9885031004b..544544b71c4 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb133b.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb133b.C @@ -3,7 +3,7 @@ // From: Klaus-Georg Adams // Reported against EGCS snaps 98/06/28. -using namespace std; +using namespace std; // { dg-error "" "" { xfail *-*-* } } int main() { @@ -14,5 +14,3 @@ int main() } return 0; } - - diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb133c.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb133c.C new file mode 100644 index 00000000000..86acdc6bf02 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb133c.C @@ -0,0 +1,17 @@ +// { dg-do assemble } +// Gives ICE 109 +// From: Klaus-Georg Adams +// Reported against EGCS snaps 98/06/28. + +namespace std { } +using namespace std; + +int main() +{ + try { + } + catch (bad_alloc) { // { dg-error "" } + return 1; + } + return 0; +}