1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/Regression/C++Frontend/2003-08-28-SaveExprBug.cpp
Chris Lattner 03e444c960 New testcase, not only possible of causing compilation failures, but could
also cause miscompilations!

llvm-svn: 8198
2003-08-29 00:03:45 +00:00

23 lines
287 B
C++

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>;