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-ref1.C
blob
f893f12dafa147742019ef4712f8af93ddf42ed8
1
// PR c++/113141
2
// { dg-do compile { target c++11 } }
3
4
struct ConvToRef {
5
operator int&();
6
};
7
8
struct A { int& r; };
9
10
void f(A);
11
12
int main() {
13
ConvToRef c;
14
A a{{c}};
15
f({{c}});
16
}