Last change
on this file since 834 was 834, checked in by bird, 22 years ago |
Extended testcase.
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
244 bytes
|
Rev | Line | |
---|
[834] | 1 | #include <stdio.h>
|
---|
| 2 | #include "throw.h"
|
---|
| 3 |
|
---|
| 4 | bar::bar(int i) : i(i)
|
---|
| 5 | {
|
---|
| 6 | fprintf(stderr, "bar::constructor 1\n");
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | bar::bar() throw(int) : i(1)
|
---|
| 10 | {
|
---|
| 11 | fprintf(stderr, "bar::constructor 2\n");
|
---|
| 12 | throw(1);
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | int bar::get() const
|
---|
| 16 | {
|
---|
| 17 | return i;
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.