gcc/testsuite/c-c++-common/strub-apply1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fstrub=strict" } */ |
| 3 | /* { dg-require-effective-target strub } */ |
| 4 | |
| 5 | void __attribute__ ((__strub__ ("callable"))) |
| 6 | apply_function (void *args) |
| 7 | { |
| 8 | __builtin_apply (0, args, 0); |
| 9 | } |
| 10 | |
| 11 | void __attribute__ ((__strub__ ("internal"))) |
| 12 | apply_args (int i, int j, double d) |
| 13 | { |
| 14 | void *args = __builtin_apply_args (); |
| 15 | apply_function (args); |
| 16 | } |