summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2003-08-28-SaveExprBug.cpp
blob: 98c5f5d8d659389957f9c86a8727ff00a9f02d47 (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 -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>;