llvm.org GIT mirror llvm / 77e94d6
New testcase, not only possible of causing compilation failures, but could also cause miscompilations! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8198 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0
1 char* eback();
2
3 template
4 struct basic_filebuf {
5 char *instancevar;
6
7 void callee() {
8 instancevar += eback() != eback();
9 }
10
11 void caller();
12 };
13
14
15 template
16 void basic_filebuf<_CharT>::caller() {
17 callee();
18 }
19
20
21 template class basic_filebuf;