mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
New testcase, not only possible of causing compilation failures, but could
also cause miscompilations! llvm-svn: 8198
This commit is contained in:
parent
7fbf15848b
commit
03e444c960
22
test/Regression/C++Frontend/2003-08-28-SaveExprBug.cpp
Normal file
22
test/Regression/C++Frontend/2003-08-28-SaveExprBug.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
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>;
|
Loading…
Reference in New Issue
Block a user