mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-17 23:44:43 +00:00
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
This commit is contained in:
parent
85544baf54
commit
77e94d645b
22
test/C++Frontend/2003-08-28-SaveExprBug.cpp
Normal file
22
test/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…
x
Reference in New Issue
Block a user