median.cc: Adjust.

2010-02-15  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/ext/median.cc: Adjust.

From-SVN: r156780
This commit is contained in:
Paolo Carlini 2010-02-15 17:35:11 +00:00 committed by Paolo Carlini
parent a934eb2d59
commit 961e1fdc40
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2010-02-15 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/ext/median.cc: Adjust.
2010-02-15 Paolo Carlini <paolo.carlini@oracle.com> 2010-02-15 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_algo.h (__median): Move... * include/bits/stl_algo.h (__median): Move...

View file

@ -1,4 +1,4 @@
// Copyright (C) 2005, 2009 Free Software Foundation, Inc. // Copyright (C) 2005, 2009, 2010 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
@ -17,7 +17,7 @@
// median - SGI extension // median - SGI extension
#include <algorithm> #include <ext/algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
bool pred(const int& l, const int& r) bool pred(const int& l, const int& r)
@ -25,9 +25,9 @@ bool pred(const int& l, const int& r)
return l<r; return l<r;
} }
using std::__median; using __gnu_cxx::__median;
int main(void) int main()
{ {
const int i=1; const int i=1;
const int j=2; const int j=2;