diff --git a/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp b/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp index 5b04f8833e7..2fec56eb626 100644 --- a/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp +++ b/mozilla/xpcom/tests/StringFactoringTests/profile_main.cpp @@ -92,10 +92,61 @@ class TestTimer nsInt64 mStartTime; }; +inline +int +foo( const nsCString& ) + { + return 1; + } + +static +int +test_construction() + { + cout << endl; + + { + nsCString someCString; + int total = 0; + TestTimer timer; + for ( int i=0; i