| 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" } |