From: Martin v. Löwis Date: Sat, 11 Jul 1998 10:35:24 +0000 (+0000) Subject: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfebe8501d37da86b2b5ffe5e0cdb41cb33f2600;p=gcc.git New testcase. From-SVN: r21059 --- 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 00000000000..208a9d68459 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C @@ -0,0 +1,23 @@ +//Build don't link: +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) +{}