Update contrib.
1 // Copyright (c) 2007-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 the License "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 // e32test\misc\t_destruct.cpp
19 #include <e32msgqueue.h>
20 #include "t_destruct.h"
22 class TTestObjectStatic
29 TTestObjectStatic GlobalObjectWithDestructor;
31 void Panic(TInt aReason)
33 User::Panic(_L("t_destruct_dll"), aReason);
36 TTestObjectStatic::TTestObjectStatic()
38 RDebug::Printf("t_destruct_dll constructor called\n");
40 RMsgQueue<TMessage> messageQueue;
41 r = messageQueue.OpenGlobal(KMessageQueueName);
44 r = messageQueue.Send(EMessageConstructStatic);
50 TTestObjectStatic::~TTestObjectStatic()
52 RDebug::Printf("t_destruct_dll destructor called\n");
54 RMsgQueue<TMessage> messageQueue;
55 r = messageQueue.OpenGlobal(KMessageQueueName);
58 r = messageQueue.Send(EMessageDestructStatic);
64 EXPORT_C void StaticMain()