Add testcase for PR43850

Submitted by Richard Guenther on July 22, 2010, 2:18 p.m.

Details

Message ID alpine.LNX.2.00.1007221618320.1429@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Guenther July 22, 2010, 2:18 p.m.
Committed.

2010-07-22  Richard Guenther  <rguenther@suse.de>

	PR lto/43850
	* g++.dg/lto/20100722-1_0.C: New testcase.

Patch hide | download patch | download mbox

Index: testsuite/g++.dg/lto/20100722-1_0.C
===================================================================
--- testsuite/g++.dg/lto/20100722-1_0.C	(revision 0)
+++ testsuite/g++.dg/lto/20100722-1_0.C	(revision 0)
@@ -0,0 +1,5 @@ 
+/* { dg-lto-do assemble } */
+
+template <class T> void void_cast_register(T *) __attribute__ ((used));
+template <class T> void void_cast_register(T *) { }
+