source:
trunk/testcase/throw.h@
2544
Last change on this file since 2544 was 1417, checked in by , 21 years ago | |
---|---|
|
|
File size: 344 bytes |
Rev | Line | |
---|---|---|
[837] | 1 | |
[1417] | 2 | #if 1 |
3 | #define dfprintf(a) fprintf a | |
[837] | 4 | #else |
5 | #define dfprintf(a) do {} while(0) | |
6 | #endif | |
7 | ||
[835] | 8 | class expt |
9 | { | |
10 | private: | |
11 | int i; | |
12 | const char *psz; | |
13 | ||
14 | public: | |
15 | expt(int i, const char *psz); | |
16 | int get() const; | |
17 | }; | |
18 | ||
[834] | 19 | class bar |
20 | { | |
21 | int i; | |
22 | public: | |
23 | bar(int i); | |
24 | bar() throw(int); | |
25 | int get() const; | |
[835] | 26 | int getThrow() const throw(expt); |
[834] | 27 | }; |
28 |
Note:
See TracBrowser
for help on using the repository browser.