Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/20060208-1.c

raw
1 /* PR middle-end/26092 */
2 /* { dg-require-effective-target indirect_calls } */
3 /* { dg-skip-if "can't take address of malloc" { nvptx-*-* } } */
4
5 typedef __SIZE_TYPE__ size_t;
6 extern void *malloc (size_t);
7
8 void *(*const foo) (size_t) = malloc;
9
10 void *test (void)
11 {
12 return (*foo) (3);
13 }