URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [fn-typedef1.C] - Rev 717
Go to most recent revision | Compare with Previous | Blame | View Log
// 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();
}
Go to most recent revision | Compare with Previous | Blame | View Log