diff options
Diffstat (limited to 'test/C++Frontend/2003-08-28-SaveExprBug.cpp')
-rw-r--r-- | test/C++Frontend/2003-08-28-SaveExprBug.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-08-28-SaveExprBug.cpp b/test/C++Frontend/2003-08-28-SaveExprBug.cpp new file mode 100644 index 0000000000..a94ff03c68 --- /dev/null +++ b/test/C++Frontend/2003-08-28-SaveExprBug.cpp @@ -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>; |