diff options
author | Paolo Carlini <pcarlini@suse.de> | 2006-01-24 00:06:15 +0000 |
---|---|---|
committer | Paolo Carlini <pcarlini@suse.de> | 2006-01-24 00:06:15 +0000 |
commit | fa9355fda7c8ff35f87923e394be801a275a05ef (patch) | |
tree | a068224a1d895a1051142f39d1f833bef104b313 /libstdc++-v3/testsuite/tr1/3_function_objects/mem_fn.cc | |
parent | 9e9f6f4b8ac43b3acdbbcfdc13e4aa80e74b9d23 (diff) |
2006-01-23 Paolo Carlini <pcarlini@suse.de>
Merged to mainline at revision 110135.
(adjusted include/c_std/cmath.tcc vs _GLIBCXX_BEGIN_NAMESPACE;
roughly merged in gnu.ver symbols)
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/libstdcxx_so_7-branch@110151 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/tr1/3_function_objects/mem_fn.cc')
-rw-r--r-- | libstdc++-v3/testsuite/tr1/3_function_objects/mem_fn.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/tr1/3_function_objects/mem_fn.cc b/libstdc++-v3/testsuite/tr1/3_function_objects/mem_fn.cc index 74caeef88ab..2f780c1a994 100644 --- a/libstdc++-v3/testsuite/tr1/3_function_objects/mem_fn.cc +++ b/libstdc++-v3/testsuite/tr1/3_function_objects/mem_fn.cc @@ -39,7 +39,7 @@ struct dumb_ptr }; // Test mem_fn with a data member -void test01() +void test01(int r = 0) { using std::tr1::mem_fn; @@ -69,6 +69,9 @@ void test01() const int& bypc = mem_fn(&X::bar)(ypc); const int& byd = mem_fn(&X::bar)(yd); const int& bydc = mem_fn(&X::bar)(ydc); + + // Avoid unused variable warnings. + r = bx + bxc + bxp + bxpc + bxd + bxdc + by + byc + byp + bypc + byd + bydc; } int main() |