diff -r 000000000000 -r 83f4b4db085c srcanamdw_os/leavescan/test/testcases/LS3-testcases/PCT-LeaveScan-LS3-001.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/srcanamdw_os/leavescan/test/testcases/LS3-testcases/PCT-LeaveScan-LS3-001.cpp Tue Feb 02 01:39:43 2010 +0200 @@ -0,0 +1,36 @@ +//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 + +}