Sign in
gnu
/
gcc
/
14bc1c0e15633ea781d76d0ae4274b2e27d51db5
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
refinit1.C
blob: 2f01e16043f20e4b181daa1c564faba2ed3720b2 [
file
] [
log
] [
blame
]
// Test that we don't allow multiple user-defined conversions in reference
// initialization.
// Build don't link:
struct
B
{
};
struct
A
{
A
(
const
B
&);
};
struct
C
{
operator
B
();
};
C c
;
const
A
&
ref
(
c
);
// ERROR - requires two UDCs