Commit 801050dc by Jakub Jelinek Committed by Richard Henderson

re PR middle-end/65074 (r220674 broke C++ PIEs)

PR middle-end/65074

 * g++.dg/opt/pr65074.C: New file.

From-SVN: r220817
parent 0ff5fade
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> 2015-02-19 Andrea Azzarone <azzaronea@gmail.com>
* g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C * g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C
......
// 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");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment