blob: ab57950acff2ef3b7e5af12296f3efb2e592bb9f [file] [log] [blame]
Douglas Gregor9d7b3532009-09-28 07:26:33 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3// PR5061
4namespace a {
5 template <typename T> class C {};
6}
7namespace b {
8 template<typename T> void f0(a::C<T> &a0) { }
9}
John McCalle1599ce2009-11-30 23:50:49 +000010
11
12namespace test1 {
13 int a = 0;
14 template <class T> class Base { };
15 template <class T> class Derived : public Base<T> {
16 int foo() {
17 return test1::a;
18 }
19 };
20}
John McCallaa81e162009-12-01 22:10:20 +000021
22namespace test2 {
23 class Impl {
24 int foo();
25 };
26 template <class T> class Magic : public Impl {
27 int foo() {
28 return Impl::foo();
29 }
30 };
31}