aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/misc13.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/misc13.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/misc13.C53
1 files changed, 0 insertions, 53 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/misc13.C b/gcc/testsuite/g++.old-deja/g++.mike/misc13.C
deleted file mode 100644
index 166e33dce6a..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.mike/misc13.C
+++ /dev/null
@@ -1,53 +0,0 @@
-// GROUPS passed vtable
-extern "C" int printf(...);
-enum { vf_request, vf_event } want;
-
-int errs = 0;
-
-class ivResource {
-public:
- virtual ~ivResource () { }
-};
-
-class ivHandler : public ivResource {
-public:
- virtual void event() { }
-};
-
-class ivGlyph : public ivResource {
-public:
- virtual ~ivGlyph () { }
- virtual void request () {
- if (want!=vf_request)
- ++errs;
- }
-};
-
-class ItemView : public ivGlyph, public ivHandler {
-public:
- virtual void event () {
- if (want!=vf_event)
- ++errs;
- }
-} a;
-
-ivGlyph *bar() {
- return &a;
-}
-
-ivHandler *bar2() {
- return &a;
-}
-
-int main() {
- want=vf_request;
- bar()->request();
- want=vf_event;
- bar2()->event();
- if (errs) {
- printf("FAIL\n");
- return 1;
- }
- printf("PASS\n");
- return 0;
-}