aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2008-08-21 17:32:38 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2008-08-21 17:32:38 +0100
commit406f3538871593ccc0ed521bc7e15e563442843a (patch)
tree7763dd24eaa85e53320282aece937ea7b985f860 /gcc
parentc76a1f1838c73fdf4caa61e776bfcdc9afabb408 (diff)
downloadgcc-406f3538871593ccc0ed521bc7e15e563442843a.zip
gcc-406f3538871593ccc0ed521bc7e15e563442843a.tar.gz
gcc-406f3538871593ccc0ed521bc7e15e563442843a.tar.bz2
anchor1.C (foo): Return the return value of ycf->ascent.
* g++.dg/opt/anchor1.C (foo): Return the return value of ycf->ascent. From-SVN: r139399
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/opt/anchor1.C2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 74ed9f9..36ad31c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-21 Joseph Myers <joseph@codesourcery.com>
+
+ * g++.dg/opt/anchor1.C (foo): Return the return value of
+ ycf->ascent.
+
2008-08-21 Richard Guenther <rguenther@suse.de>
* gcc.dg/vect/vect-fold-1.c: Scan ccp1 dump instead of dom1.
diff --git a/gcc/testsuite/g++.dg/opt/anchor1.C b/gcc/testsuite/g++.dg/opt/anchor1.C
index 5d30afb..e24b0a4 100644
--- a/gcc/testsuite/g++.dg/opt/anchor1.C
+++ b/gcc/testsuite/g++.dg/opt/anchor1.C
@@ -47,7 +47,7 @@ YCoreFont::~YCoreFont() {
int foo(YCoreFont *ycf)
{
- ycf->ascent ();
+ return ycf->ascent ();
}
int main()