aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2003-08-28-SaveExprBug.cpp
blob: 2be35d8d522d362df64d1c1d565dd64a70174525 (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
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null


char* eback();

template<typename foo>
struct basic_filebuf {
  char *instancevar;

  void callee() {
    instancevar += eback() != eback();
  }

  void caller();
};


template<typename _CharT>
void basic_filebuf<_CharT>::caller() {
  callee();
}


template class basic_filebuf<char>;