Commit | Line | Data |
---|---|---|
e70d6e3f DC |
1 | /* Create some objects, and try to print out their methods. */ |
2 | ||
3 | class A { | |
4 | public: | |
5 | virtual void virt() {}; | |
6 | void nonvirt() {}; | |
7 | }; | |
8 | ||
9 | int main() | |
10 | { | |
11 | A *theA = new A; | |
12 | ||
13 | return 0; // breakpoint: constructs-done | |
14 | } |