summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cast2.C
blob: 1ccda2b4804bc9ba64ec3bd3129a5a9a024a6320 (plain)
1
2
3
4
5
void (*p)();

void f() {
  (void *)p; // { dg-warning "forbids cast" }
}