Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/rfg26.C

raw
1 // { dg-do assemble }
2 typedef void (FTYPE) ();
3
4 FTYPE f; /* ok */
5
6 void
7 test_0 ()
8 {
9 (FTYPE) f; /* { dg-error "5:invalid cast to function type" } casting to function type */
10 }