srcanamdw_os/leavescan/test/testcases/LS3-testcases/PCT-LeaveScan-LS3-001.cpp
author William Roberts <williamr@symbian.org>
Wed, 28 Apr 2010 22:23:47 +0100
branchRCL_3
changeset 35 e5a9edf0be25
parent 18 99082257a271
permissions -rw-r--r--
Remerge fixes for Bug 476, Bug 1895, Bug 2149, Bug 2049, Bug 2509 and Bug 2539

/*
* Copyright (c) 2009 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: 
*
*/
//desc:test new(ELeave) and User::Leave of LS3
//option:
//date:2008-8-12 15:58:1
//author:pingorliu
//type: CT

void func()
{
/*new(ELeave)CL();*/ //check:-func,-calls

/*
 *
 * new(ELeave)CL();  //check:-func,-calls
 *
*/	

new(ELeavet)CL(); //check:func,ELeave

//this is a function call User::Leave(); //check:-func,-calls
//this is a function call User::LeaveIfError(); //check:-func,-calls
//this is a function call User::LeaveNoMemory(); //check:-func,-calls
//this is a function call User::LeaveIfError(); //check:-func,-calls


string str = "calling new(ELeave)CL()"; //check:-func,-ELeave
string str2 = "\"calling User::Leave()\""; //check:-func,-calls
string str3 = "\"calling User::LeaveIfError()"; //check:-func,-calls
string str4 = "'calling ELeave'"; //check:-func,-calls
string str5 = "'calling Leave()"; //check:-func,-calls
string str6 = " this is a function\
                User::Leave()";  //check:-func,-calls

int ELeavet = 1; //check:-func,-calls
MARCOELEAVE(); //check:-func,-calls

}