repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr66180_0.C
blob
c22dc284b1bd8bb1fb272f90774fc7e53b33edf0
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
};
8
}
9
class G {
10
std::unique_ptr<A> foo() const;
11
};
12
std::unique_ptr<A> G::foo() const { return std::make_unique<A>(); }
13