Debian Codegraph @

gcc/testsuite/c-c++-common/strub-apply2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fstrub=strict" } */
3 /* { dg-require-effective-target strub } */
4
5 extern void __attribute__ ((__strub__))
6 apply_function (void *args);
7
8 void __attribute__ ((__strub__))
9 apply_args (int i, int j, double d) /* { dg-error "selected" } */
10 {
11 void *args = __builtin_apply_args (); /* { dg-message "does not support" } */
12 apply_function (args);
13 }