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 |
/* |
34
5fae379060a7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2 |
* |
5fae379060a7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3 |
* © Portions copyright (c) 2006 Nokia Corporation. |
31 | 4 |
* All rights reserved. |
5 |
* |
|
6 |
*/ |
|
7 |
||
8 |
||
9 |
#include <string> |
|
10 |
||
11 |
#ifdef __SYMBIAN32__ |
|
12 |
int strass1_test(int, char**) |
|
13 |
#else |
|
14 |
int main() |
|
15 |
#endif |
|
16 |
{ |
|
17 |
std::string str1 = "string"; |
|
18 |
std::string str2; |
|
19 |
str2.assign(str1.begin(), str1.begin() + 3); |
|
20 |
||
21 |
if(str2.compare("str")!=0) |
|
22 |
return 1; |
|
23 |
else |
|
24 |
return 0; |
|
25 |
} |