URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [fn-typedef1.C] - Rev 847
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