diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/lookup3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/lookup3.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/lookup3.C b/gcc/testsuite/g++.old-deja/g++.pt/lookup3.C new file mode 100644 index 000000000..5a7a03722 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/lookup3.C @@ -0,0 +1,18 @@ +// { dg-do run } +template<class T> +class A { +public: + void f() { } +}; + +class B : public A<int> { +public: + void f(); +}; + +int main() +{ + B b; + B& b1 = b; + b1.A<int>::f(); +} |