Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
overload
/
operator4.C
blob: 3ec1eb472dd926093708a58e6111c99dad952fae [
file
] [
log
] [
blame
]
// PR c++/38174
struct
VolatileIntPtr
{
operator
int
volatile
*();
};
struct
ConstIntPtr
{
operator
int
const
*();
};
void
test_with_ptrs
(
VolatileIntPtr
vip
,
ConstIntPtr
cip
)
{
bool
b1
=
(
vip
==
cip
);
long
p1
=
vip
-
cip
;
}