aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/DelayedTemplateParsing.cpp
blob: 355250e4b04a61af0f3f5ae6ca93c0218f2773fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// RUN: %clang_cc1 -fdelayed-template-parsing -fsyntax-only -verify %s

template <class T>
class A {

   void foo() {
       undeclared();
   }
   
   void foo2();
};

template <class T>
void A<T>::foo2() {
    undeclared();
}


template <class T>
void foo3() {
   undeclared();
}

template void A<int>::foo2();


void undeclared()
{

}