From: rguenth Date: Fri, 5 Jan 2007 14:00:46 +0000 (+0000) Subject: 2007-01-05 Richard Guenther X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cb4612262d6c7e32b79796a02726a62eccf6c97;p=thirdparty%2Fgcc.git 2007-01-05 Richard Guenther PR middle-end/28116 * g++.dg/opt/pr28116.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120482 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aae1b7a35bbc..3a5224a84f86 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ -2006-01-05 Tobias Burnus +2007-01-05 Richard Guenther + + PR middle-end/28116 + * g++.dg/opt/pr28116.C: New testcase. + +2007-01-05 Tobias Burnus PR fortran/29624 * gfortran.dg/alloc_alloc_expr_1.f90: Add check for diff --git a/gcc/testsuite/g++.dg/opt/pr28116.C b/gcc/testsuite/g++.dg/opt/pr28116.C new file mode 100644 index 000000000000..a85917c8f900 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/pr28116.C @@ -0,0 +1,19 @@ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ + +struct QDateTime +{ + QDateTime addSecs( int secs ) const; + int t; +}; +QDateTime gridToDate(long x) +{ + QDateTime date; + date = date.addSecs(1); + return date; +} +void whatsOnAt(long x, long y) +{ + gridToDate(x); +} +