OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* parser.c (cp_parser_decl_specifier_seq): Change "C++0x" to
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist32.C
1
// Test that we try normal init if no list ctor is viable.
2
// { dg-options "-std=c++0x" }
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};