OSDN Git Service

authorrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jul 1998 21:10:50 +0000 (21:10 +0000)
committerrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Jul 1998 21:10:50 +0000 (21:10 +0000)
From Martin Von Loewis.
       * g++.ns/{alias2.C, alias5.C, koenig4.C, lookup3.C ns13.C,
       ns14.C, ns15.C, template3.C, undef1.C, using4.C, using5.C,
       using6.C, using7.C}:  New namespace tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21042 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.old-deja/g++.ns/alias2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.ns/alias5.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.ns/alias2.C b/gcc/testsuite/g++.old-deja/g++.ns/alias2.C
new file mode 100644 (file)
index 0000000..95b2a23
--- /dev/null
@@ -0,0 +1,8 @@
+//Build don't link:
+namespace NS1
+{
+  int a;
+}
+
+namespace NS2 = NonExistant; //ERROR - 
+
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/alias5.C b/gcc/testsuite/g++.old-deja/g++.ns/alias5.C
new file mode 100644 (file)
index 0000000..797e2b2
--- /dev/null
@@ -0,0 +1,18 @@
+namespace foo{
+ int eine_funktion(int)
+ {
+   return 0;
+ }
+}
+
+namespace foo{
+ void eine_funktion(int,int)
+ {}
+}
+
+namespace bar = foo;
+
+int main()
+{
+  return bar::eine_funktion(3);
+}