Commit 029ccdb3 by Jakub Jelinek Committed by Jakub Jelinek

* g++.old-deja/g++.other/loop2.C: New test.

From-SVN: r35839
parent e66e4fa2
2000-08-21 Jakub Jelinek <jakub@redhat.com>
* g++.old-deja/g++.other/loop2.C: New test.
* gcc.c-torture/compile/20000606-1.c: New test.
* gcc.c-torture/compile/20000728-1.c: New test.
* gcc.c-torture/execute/20000801-1.c: New test.
......
// Build don't link:
// Special g++ Options: -O
class foo {
public:
operator const char*() const { return a; }
char *a;
};
class bar {
public:
~bar();
void operator++(int);
bool b() const;
protected:
void* c() const;
};
class baz : public bar {
public:
foo const &d() const { return *(foo *)bar::c(); }
};
extern int tst (const char *, const char *) throw();
void die(const foo& x)
{
for (baz hi; hi.b(); hi++)
if (tst (hi.d(), x) == 0)
return;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment