Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
ref-qual7.C
blob: 2430665db345355d90e551d0ea8015c3b7d2e6b3 [
file
] [
log
] [
blame
]
// typedef test
// { dg-require-effective-target c++11 }
typedef
void
F
()
&;
F f
;
// { dg-error "" }
F
*
p
;
// { dg-error "" }
extern
F
&
r
;
// { dg-error "" }
struct
A
{
F f
;
};
int
main
()
{
A a
;
a
.
f
();
A
().
f
();
// { dg-error "" }
}