Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
pr20039.C
blob: aaac8bd4e3cda69e1298554f486ee275e385af77 [
file
] [
log
] [
blame
]
// PR c++/20039
// { dg-do compile }
struct
M
{
M
()
:
m
(
0
)
{
}
int
m
;
};
struct
X
{
M m
;
int
i
;
};
int
mymain
()
{
const
X
*
p
=
new
const
X
[
2
];
// { dg-error "uninitialized const" }
return
0
;
}