* g++.old-deja/g++.other/eh.C: New test.
From-SVN: r33928
This commit is contained in:
parent
f5a5839570
commit
a48df36232
|
@ -1,3 +1,7 @@
|
||||||
|
2000-05-15 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* g++.old-deja/g++.other/eh.C: New test.
|
||||||
|
|
||||||
2000-05-12 Richard Henderson <rth@cygnus.com>
|
2000-05-12 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
* gcc.c-torture/execute/990208-1.c (main): Don't pass
|
* gcc.c-torture/execute/990208-1.c (main): Don't pass
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
// Build don't link:
|
||||||
|
|
||||||
|
class foo {
|
||||||
|
public:
|
||||||
|
~foo();
|
||||||
|
foo &operator=(const foo &);
|
||||||
|
foo e() const;
|
||||||
|
};
|
||||||
|
class bar {
|
||||||
|
public:
|
||||||
|
foo d() const;
|
||||||
|
};
|
||||||
|
struct x {
|
||||||
|
foo a;
|
||||||
|
bar* b;
|
||||||
|
};
|
||||||
|
void baz(x *f, int ic)
|
||||||
|
{
|
||||||
|
f->a = ic ? f->b->d().e() : f->b->d();
|
||||||
|
}
|
Loading…
Reference in New Issue