author | William Roberts <williamr@symbian.org> |
Thu, 22 Jul 2010 16:48:56 +0100 | |
branch | GCC_SURGE |
changeset 45 | 4b03adbd26ca |
parent 18 | 47c74d1534e1 |
parent 34 | 5fae379060a7 |
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 |
} |