diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-05-16 12:13:02 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-05-16 12:13:02 +0200 |
commit | a48df36232f9adcd8328a6820f86e8d91f8bbcca (patch) | |
tree | ff49351dd9d782f307955e6881614090d8af6f89 | |
parent | f5a58395700b5271490e37c62f2b5a6e0c1f4d5c (diff) | |
download | gcc-a48df36232f9adcd8328a6820f86e8d91f8bbcca.zip gcc-a48df36232f9adcd8328a6820f86e8d91f8bbcca.tar.gz gcc-a48df36232f9adcd8328a6820f86e8d91f8bbcca.tar.bz2 |
* g++.old-deja/g++.other/eh.C: New test.
From-SVN: r33928
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/eh.C | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 216623a..7cb198f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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> * gcc.c-torture/execute/990208-1.c (main): Don't pass diff --git a/gcc/testsuite/g++.old-deja/g++.other/eh.C b/gcc/testsuite/g++.old-deja/g++.other/eh.C new file mode 100644 index 0000000..90294fa --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/eh.C @@ -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(); +} |