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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist50.C
blob
41fb03ba002666b40b90987482ccd46cdb2c5cac
1
// PR c++/45418
2
// { dg-do compile { target c++11 } }
3
4
struct A1 { };
5
struct A2 {
6
A2();
7
};
8
9
template <class T> struct B {
10
T ar[1];
11
B(T t):ar{t} {}
12
};
13
14
int main(){
15
B<int> bi{1};
16
A1 a1;
17
B<A1> ba1{a1};
18
A2 a2;
19
A2 a2r[1]{{a2}};
20
B<A2> ba2{a2};
21
}