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
/
initlist-array4.C
blob
af2045d9bbe172963cd7e6494dcfaf70e5974899
1
// PR c++/58636
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
// { dg-error "pointer to reference" "" { target *-*-* } 0 }
7
int foo(std::initializer_list<int&&>);
8
9
int i = foo({ 0 }); // { dg-error "std::initializer_list" }