Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Name : oper_new_test.cpp
15 // Part of : standard c++ tests.
22 #include "test_decls.h"
24 #define ONE_HUGE_VALUE 0xA00000
30 User::__DbgSetBurstAllocFail(EFalse, RAllocator::EBurstFailNext, 1, KMaxTUint16);
31 int *ptr = new int[ONE_HUGE_VALUE];
39 while( (ptr = bar()) != NULL) {
42 }catch(std::bad_alloc ba) {
49 CPP_TESTS_ASSERT_ALLWAYS( glob_val == 1);