summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/cdtest/cdtest.scn
blob: 7307d7cb17425f1c4d7176b7bea341699fd26be2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
*** BEGIN OF TEST CONSTRUCTOR/DESTRUCTOR ***
GLOBAL: Hey I'm in base class constructor number 1 for 0x2052154.
GLOBAL: Hey I'm in base class constructor number 2 for 0x2052148.
GLOBAL: Hey I'm in derived class constructor number 3 for 0x2052148.


*** BEGIN OF TEST CONSTRUCTOR/DESTRUCTOR ***
LOCAL: Hey I'm in base class constructor number 4 for 0x2057978.
LOCAL: Hey I'm in base class constructor number 5 for 0x2057984.
LOCAL: Hey I'm in base class constructor number 6 for 0x2057990.
LOCAL: Hey I'm in base class constructor number 7 for 0x205799c.
LOCAL: Hey I'm in derived class constructor number 8 for 0x205799c.
IO Stream not tested
LOCAL: Hey I'm in derived class destructor number 8 for 205799C.
Derived class - Instantiation order 8
LOCAL: Hey I'm in base class destructor number 7 for 205799C.
Derived class - Instantiation order 8
LOCAL: Hey I'm in base class destructor number 6 for 2057990.
Derived class - Instantiation order 6
LOCAL: Hey I'm in base class destructor number 5 for 2057984.
Derived class - Instantiation order 5
LOCAL: Hey I'm in base class destructor number 4 for 2057978.
Derived class - Instantiation order 5
*** TESTING C++ EXCEPTIONS ***

foo_function() catch block called:
   < foo_function() throw this exception  >
Success catching a char * exception
foo_function() re-throwing execption...
throw std::runtime: caught: thrown std::runtime object
throw an instance based exception
RtemsException raised=File:../../../../../../../rtems/c/src/../../testsuites/samples/cdtest/main.cc, Line:229, Error=55
Success catching RtemsException...
RtemsException ---> File:../../../../../../../rtems/c/src/../../testsuites/samples/cdtest/main.cc, Line:229, Error=55
Exceptions are working properly.
Global Dtors should be called after this line....
GLOBAL: Hey I'm in derived class destructor number 3 for 2052148.
Derived class - Instantiation order 3
GLOBAL: Hey I'm in base class destructor number 2 for 2052148.
Derived class - Instantiation order 3
GLOBAL: Hey I'm in base class destructor number 1 for 2052154.
Derived class - Instantiation order 1
*** END OF TEST CONSTRUCTOR/DESTRUCTOR ***