(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
opt/
pr65074.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");
}