PR middle-end/65074
* g++.dg/opt/pr65074.C: New file.
From-SVN: r220817
+2015-02-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/65074
+ * g++.dg/opt/pr65074.C: New file.
+
2015-02-19 Andrea Azzarone <azzaronea@gmail.com>
* g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C
--- /dev/null
+// PR middle-end/65074
+// { dg-do link { target pie } }
+// { dg-options "-pie -fpie -O2" }
+
+#include <fstream>
+
+using namespace std;
+
+__attribute__((noinline, noclone)) void
+foo (const char *fname)
+{
+ ifstream f (fname);
+}
+
+int
+main ()
+{
+ foo ("foobar");
+}