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
OpenMP/C++: Use STRIP_REFERENCE_REF to fix declare variant with reference-returning...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist85.C
blob
0b5ce497e491c172bd202fd7a86e6f299bd93f20
1
// PR c++/60848
2
// { dg-do compile { target c++11 } }
3
4
namespace std
5
{
6
struct initializer_list {}; // { dg-error "declaration" }
7
}
8
9
void foo(std::initializer_list &);
10
11
void f()
12
{
13
foo({1, 2}); // { dg-error "invalid initialization" }
14
}