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
/
initlist32.C
blob
c5c02fc63dac7eff14a65e9077d226e1a57f87ce
1
// Test that we try normal init if no list ctor is viable.
2
// { dg-do compile { target c++11 } }
3
4
#include <initializer_list>
5
6
struct B {};
7
8
struct C
9
{
10
C(B);
11
};
12
13
struct A
14
{
15
A(std::initializer_list<int>);
16
A(B) { }
17
A(C);
18
};
19
20
B b;
21
A a{b};