repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist48.C
blob
cd9027e3aad3687fe45baca816f6d9ed3133b83e
1
// PR c++/48726
2
// { dg-do compile { target c++11 } }
3
4
#include <memory>
5
#include <initializer_list>
6
7
struct Foo{
8
int i;
9
};
10
typedef std::unique_ptr<Foo> up;
11
12
std::initializer_list<up> il{up{new Foo}, up{new Foo}};