diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-19 11:17:39 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-19 11:17:39 +0000 |
commit | 6fd115145c0431e455ce8893bf3c672066c67fb2 (patch) | |
tree | 76cfc467e813ecd324ad54ec8f08c8f739865c2a | |
parent | 0e698250a6e1edbd28e38d5e54a419b17682500d (diff) | |
download | gcc-6fd115145c0431e455ce8893bf3c672066c67fb2.tar.gz |
* stkalign.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33253 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/stkalign.C | 19 |
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog index 2d71605da55..b6e486f5a17 100644 --- a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog +++ b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog @@ -1,3 +1,7 @@ +2000-04-19 Alexandre Oliva <oliva@lsd.ic.unicamp.br> + + * stkalign.C: New test. + 1999-12-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br> * nameret2.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/stkalign.C b/gcc/testsuite/g++.old-deja/g++.oliva/stkalign.C new file mode 100644 index 00000000000..fc2cea644c0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/stkalign.C @@ -0,0 +1,19 @@ +// Build don't link: + +// Copyright (C) 2000 Free Software Foundation + +// by Alexandre Oliva <aoliva@cygnus.com> +// distilled from libg++'s Fix.cc + +// crash test - XFAIL i*86-*-* + +struct Integer { + ~Integer () {} +}; + +void foo (const Integer& y); +Integer bar (const Integer& x); + +void show (const Integer& x) { + foo (bar (x)); +} |