OSDN Git Service

2009-10-22 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 13:10:55 +0000 (13:10 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 13:10:55 +0000 (13:10 +0000)
PR lto/41730
* g++.dg/lto/20091022-1_0.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153455 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/20091022-1_0.C [new file with mode: 0644]

index 78f21bd..7884ac1 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-22  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/41730
+       * g++.dg/lto/20091022-1_0.C: New testcase.
+
 2009-10-22  Jan Hubicka  <jh@suse.cz>
 
        * gcc.c-torture/compile/pr40556.c: New testcase.
diff --git a/gcc/testsuite/g++.dg/lto/20091022-1_0.C b/gcc/testsuite/g++.dg/lto/20091022-1_0.C
new file mode 100644 (file)
index 0000000..cb3f20a
--- /dev/null
@@ -0,0 +1,13 @@
+// { dg-lto-do link }
+// { dg-extra-ld-options "-fwhole-program" }
+
+template <int dim> 
+struct AutoDerivativeFunction {
+    virtual void gradient_list (void);
+};
+template <int dim>
+void AutoDerivativeFunction<dim>::gradient_list (void)
+{
+}
+template class AutoDerivativeFunction<1>;
+int main() {}