Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
fn-typedef1.C
blob: ebdc012f59ce3f56cdbf2ebddff70ea8965abfbc [
file
] [
log
] [
blame
]
// PR c++/40750
// { dg-do run }
extern
"C"
void
abort
();
typedef
void
Fn
()
const
;
struct
Foo
{
Fn
fn
;
};
bool
called
=
false
;
void
Foo
::
fn
()
const
{
called
=
true
;
}
int
main
()
{
Foo
f
;
f
.
fn
();
if
(!
called
)
abort
();
}