2018-04-04 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr85176_0.C
blob73767ce42eaf014d2d9e204da8cc62bdf3338ebf
1 // { dg-lto-do link }
2 // { dg-lto-options { { -flto -g1 } } }
3 // { dg-extra-ld-options "-r -nostdlib" }
4 namespace a {
5     template <typename b, typename = b> class c;
6     template <typename b, typename d> void e(c<b, d> &);
7     void operator<<(c<char> &f, const char *) { e(f); }
8     extern c<char> cout;
10 int main() { a::cout << ""; }