diff -r 28839de615b4 -r 26645d81f48d traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_common/src/te_ctor.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_common/src/te_ctor.cpp Tue Aug 31 16:57:14 2010 +0300 @@ -0,0 +1,51 @@ +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Test class generating trace data from contructor with/without initialiser list. +// + +#include "te_ctor.h" +#include "te_ctorTraces.h" + +/** + * Constructor + * + * Trace producing constructor with initialiser list. + * + * Previous versions of the TraceCompiler do not handle initialiser lists correctly. + * For such a TC the following code will not compile. + */ + +TTestCtor::TTestCtor( TUint32 aArg1, TUint32 aArg2 ) +: + iNum1( aArg1 ), + iNum2( aArg2 ), + iStr( KTestCtorString ) + { + OstTraceFunctionEntryExt( CTESTCTOR_INITLIST_TRACE, KData1 ); + } + +/** + * Constructor + * + * Trace producing constructor without initialiser list. + */ + +TTestCtor::TTestCtor( TUint32 aArg1 ) + { + iNum1 = aArg1; + iNum2 = 0; + iStr = KTestCtorString; + + OstTraceFunctionEntryExt( CTESTCTOR_NO_INITLIST_TRACE, KData1 ); + }