Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
conv2.C
blob: baf2a43b2ae66348ee7d8842c825f6922642ee53 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-additional-options "-fpermissive" }
struct
A
{
A
(
int
*,
int
);
};
void
f
(
A
);
int
main
()
{
const
int
n
=
0
;
f
({&
n
,
42
});
// { dg-warning "invalid conversion from 'const int\\*' to 'int\\*'" }
}