OSDN Git Service

2007-01-05 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Jan 2007 14:00:46 +0000 (14:00 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Jan 2007 14:00:46 +0000 (14:00 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr28116.C [new file with mode: 0644]

index aae1b7a..3a5224a 100644 (file)
@@ -1,4 +1,9 @@
-2006-01-05  Tobias Burnus  <burnus@net-b.de>
+2007-01-05  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/28116
+       * g++.dg/opt/pr28116.C: New testcase.
+
+2007-01-05  Tobias Burnus  <burnus@net-b.de>
 
        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 (file)
index 0000000..a85917c
--- /dev/null
@@ -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);
+}
+