2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr66180_0.C
blobc22dc284b1bd8bb1fb272f90774fc7e53b33edf0
1 // { dg-lto-do link }
2 // { dg-lto-options { { -flto -std=c++14 -r -nostdlib } } }
3 #include <memory>
4 namespace {
5 class A {
6   int i;
7 };
9 class G {
10   std::unique_ptr<A> foo() const;
12 std::unique_ptr<A> G::foo() const { return std::make_unique<A>(); }