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
PR c++/50941
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-value2.C
1
// Test that we properly value-initialize a class with a user-provided
2
// constructor but defaulted default constructor. The FDIS got this
3
// wrong; see c++std-core-19883.
4
5
// { dg-options -std=c++0x }
6
// { dg-do run }
7
8
struct A
9
{
10
int i;
11
A() = default;
12
A(int);
13
};
14
15
int main()
16
{
17
A a{};
18
if (a.i != 0)
19
return 1;
20
}