From 5e8ad514bc08d50f98b21a93a964e1f487b86228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 25 Feb 1999 00:33:51 +0000 Subject: [PATCH] New test cases. From-SVN: r25422 --- gcc/testsuite/g++.old-deja/g++.ns/alias7.C | 11 +++++++++++ gcc/testsuite/g++.old-deja/g++.ns/ns17.C | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.ns/alias7.C create mode 100644 gcc/testsuite/g++.old-deja/g++.ns/ns17.C diff --git a/gcc/testsuite/g++.old-deja/g++.ns/alias7.C b/gcc/testsuite/g++.old-deja/g++.ns/alias7.C new file mode 100644 index 00000000000..ce1ebb86755 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ns/alias7.C @@ -0,0 +1,11 @@ +//Build don't link: +namespace A{ + namespace B{int i;} + using namespace B; +} + +namespace C=A; + +void f(){ + C::i = 1; +} diff --git a/gcc/testsuite/g++.old-deja/g++.ns/ns17.C b/gcc/testsuite/g++.old-deja/g++.ns/ns17.C new file mode 100644 index 00000000000..8d1fdd7e2ac --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ns/ns17.C @@ -0,0 +1,13 @@ +//Build don't link: +namespace foo +{ + class c + { + }; +}; + +int +foo::c:fn () // ERROR - syntax error +{ +} +