stdcpp/tsrc/Stdcpp_test/stlport/auto/stlport_strass/src/strass1.cpp
author William Roberts <williamr@symbian.org>
Thu, 22 Jul 2010 16:48:56 +0100
branchGCC_SURGE
changeset 45 4b03adbd26ca
parent 18 47c74d1534e1
parent 34 5fae379060a7
permissions -rw-r--r--
Catchup to latest Symbian^4

/*
*
* © Portions copyright (c) 2006 Nokia Corporation.
* All rights reserved.
*
*/

 
#include <string>

#ifdef __SYMBIAN32__
int strass1_test(int, char**)
#else
int main()
#endif
      {
      std::string str1 = "string";
      std::string str2;
      str2.assign(str1.begin(), str1.begin() + 3);
           
      if(str2.compare("str")!=0)
        return 1;
      else
        return 0;
      }