PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr65074.C
blob01c5926e6626c375ec5c74146e846b4516d0304b
1 // PR middle-end/65074
2 // { dg-do link { target pie } }
3 // { dg-options "-pie -fpie -O2" }
5 #include <fstream>
7 using namespace std;
9 __attribute__((noinline, noclone)) void
10 foo (const char *fname)
12   ifstream f (fname);
15 int
16 main ()
18   foo ("foobar");