Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
();
}