repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist38.C
blob
818d69ad654acb0b1476880efc95d36960dcc1ab
1
// DR 990
2
// { dg-options "-std=c++0x" }
3
4
#include <initializer_list>
5
6
struct A {
7
A(std::initializer_list<int>); // #1
8
};
9
struct B {
10
A a;
11
};
12
13
void f (B);
14
int main()
15
{
16
B{};
17
f({});
18
B b0 = { };
19
B b1 { }; // OK, uses #1
20
B b2 { 1 }; // { dg-error "conversion" }
21
}