Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
operators1.C
blob: b1499bf1e959a10a55cfc44cc5a8f4016f12a620 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// GROUPS passed operators
struct
A
{
int
x
;
};
int
operator
()(
A x
,
float
y
)
{
// MUST be a member function// { dg-error "" } .*
return
1
;
}
int
main
()
{
A x
;
x
(
1.0
);
// { dg-error "" } no match for call
}