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