summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.ns/lookup4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ns/lookup4.C23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C b/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C
new file mode 100644
index 000000000..e4b4be31f
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C
@@ -0,0 +1,23 @@
+// { dg-do assemble }
+namespace X{
+ typedef int foo;
+ const int bar=2;
+ namespace Y{
+ void f(foo);
+ extern int g;
+ extern int g1;
+ struct h{
+ void i(foo);
+ };
+ }
+}
+
+void X::Y::f(foo)
+{
+}
+
+int X::Y::g = bar;
+int X::Y::g1(bar);
+
+void X::Y::h::i(foo)
+{}