/* PR middle-end/26092 */ /* { dg-require-effective-target indirect_calls } */ /* { dg-skip-if "can't take address of malloc" { nvptx-*-* } } */ typedef __SIZE_TYPE__ size_t; extern void *malloc (size_t); void *(*const foo) (size_t) = malloc; void *test (void) { return (*foo) (3); }