[llvm-commits] CVS: llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-SaveExprBug.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 28 19:04:01 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend/CompileFail:
2003-08-28-SaveExprBug.cpp added (r1.1)
---
Log message:
New testcase, not only possible of causing compilation failures, but could
also cause miscompilations!
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-SaveExprBug.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-SaveExprBug.cpp:1.1
*** /dev/null Thu Aug 28 19:03:55 2003
--- llvm/test/Regression/C++Frontend/CompileFail/2003-08-28-SaveExprBug.cpp Thu Aug 28 19:03:45 2003
***************
*** 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>;
More information about the llvm-commits
mailing list