aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/lookup-dependent-bases.cpp
blob: 4fcfbd196407158c2e1c0bcaceb4167e55354b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %clang_cc1 -fms-extensions -fsyntax-only -verify %s
// expected-no-diagnostics

class C {
public:
   static void foo2() {  }
};
template <class T>
class A {
public:
   typedef C D;
};

template <class T>
class B : public A<T> {
public:
   void foo() {
    D::foo2();
   }
};