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();
}