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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist48.C
blob
7a79c67766362735f17ad1c4667137b97c129e4b
1
// PR c++/48726
2
// { dg-do compile { target c++11 } }
3
4
#include <memory>
5
6
struct Foo{
7
int i;
8
};
9
typedef std::unique_ptr<Foo> up;
10
11
std::initializer_list<up> il{up{new Foo}, up{new Foo}};