Test that a call to a trampoline is turned into a call to
[oota-llvm.git] / test / C++Frontend / 2003-08-28-SaveExprBug.cpp
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3
4 char* eback();
5
6 template<typename foo>
7 struct basic_filebuf {
8   char *instancevar;
9
10   void callee() {
11     instancevar += eback() != eback();
12   }
13
14   void caller();
15 };
16
17
18 template<typename _CharT>
19 void basic_filebuf<_CharT>::caller() {
20   callee();
21 }
22
23
24 template class basic_filebuf<char>;