blob: 98c5f5d8d659389957f9c86a8727ff00a9f02d47 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3
4char* eback();
5
6template<typename foo>
7struct basic_filebuf {
8 char *instancevar;
9
10 void callee() {
11 instancevar += eback() != eback();
12 }
13
14 void caller();
15};
16
17
18template<typename _CharT>
19void basic_filebuf<_CharT>::caller() {
20 callee();
21}
22
23
24template class basic_filebuf<char>;