Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gcc.target
/
bpf
/
diag-indcalls.c
blob: 9263fcf7e1a32f528831e2ba931c757cfa61dd2f [
file
] [
log
] [
blame
]
/* Verify proper errors are generated for indirect function calls. */
/* { dg-do compile } */
/* { dg-options "-O0" } */
void
(*
fnp
)
(
void
);
void
foo
()
{
(*
fnp
)
();
}
/* { dg-error "indirect call in function" } */