Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error44.C
blob: 2ebbe710c7c443a9ad9f7bd9fac23aa697265333 [
file
] [
log
] [
blame
]
// PR c++/31423
// { dg-options "-fms-extensions" }
struct
C
{
int
f
()
{
return
1
;
}
int
g
()
{
return
2
;
}
};
int
f
(
C
&
c
)
{
return
c
.
g
==
&
c
.
f
;
// { dg-error "forget the '&'" }
}