summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg26.C
blob: 2b7e06085a4bbe860d64b1e1728aec9faffc02a6 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
typedef void (FTYPE) ();
 
FTYPE f;                /* ok */
 
void
test_0 ()
{
    (FTYPE) f;          /* { dg-error "" } casting to function type */
}