author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 11 Jun 2010 15:26:22 +0300 | |
changeset 34 | 5fae379060a7 |
parent 31 | ce057bb09d0b |
child 45 | 4b03adbd26ca |
permissions | -rw-r--r-- |
31 | 1 |
|
2 |
// STLport regression testsuite component. |
|
3 |
// To compile as a separate example, please #define MAIN. |
|
4 |
||
5 |
#include <algorithm> |
|
6 |
#include <iostream> |
|
7 |
||
8 |
#ifdef MAIN |
|
9 |
#define max1_test main |
|
10 |
#endif |
|
11 |
||
12 |
#if !defined (STLPORT) || defined(__STL_USE_NAMESPACES) |
|
13 |
using namespace std; |
|
14 |
#endif |
|
15 |
int max1_test(int, char**) |
|
16 |
{ |
|
17 |
cout<<"Results of max1_test:"<<endl; |
|
18 |
cout << max(42, 100) << endl; |
|
19 |
if(max(42, 100) == 100 ) |
|
20 |
return 0; |
|
21 |
else return 1; |
|
22 |
} |