bogus tests

From-SVN: r25048
This commit is contained in:
Brendan Kehoe 1999-02-05 07:28:26 -05:00
parent 9a6e70c918
commit 2814ec94f8
2 changed files with 0 additions and 72 deletions

View File

@ -1,28 +0,0 @@
// GROUPS passed operators
// opr-conv file
// excess errors test - XFAIL *-*-*
// Message-Id: <199301040217.AA04377@cypress.ucsc.edu>
// From: "Dean R. E. Long" <dlong@cse.ucsc.edu>
// Subject: conversion operator bug?
// Date: Sun, 3 Jan 1993 18:17:20 -0800
#include <stdio.h>
class B {};
class A {
B *p;
public:
A() { p = 0; }
operator B * () { return p; }
operator B & () { return *p; }
};
int main()
{
A a;
B &b = (B &)a;
B *bp = (B *)a;
B &br = a.operator B&();
// What's the right test?
exit (1);
}

View File

@ -1,44 +0,0 @@
// GROUPS passed operators
// opr-as file
// From: amichail@lambert.waterloo.edu (Amir Michail)
// Date: Mon, 15 Jun 1992 19:41:37 GMT
// Subject: inheretance bug
// Message-ID: <AMICHAIL.92Jun15144137@lambert.waterloo.edu>
#include <stdio.h>
class window {
public:
int k;
virtual void inc() {}
};
class window_border : public virtual window {
public:
void inc () { k++; }
};
class container {
public:
window_border c;
#if 0
container& operator = (const container& o) {
this->c = o.c;
return *this;
}
#endif
};
int main() {
container test, *test2;
void *vp;
test2 = new container;
test.c.k = 34;
vp = (window *)&test2->c;
*test2 = test;
test.c.k = 60;
if (test2->c.k == 35
&& test.c.k == 60)
exit (0);
else
exit (1);
}