aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/strub-apply1.c
blob: 3edc89c54eea14d58b0cfed61e703fc27bc50bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-fstrub=strict" } */
/* { dg-require-effective-target strub } */

void __attribute__ ((__strub__ ("callable")))
apply_function (void *args)
{
  __builtin_apply (0, args, 0);
}

void __attribute__ ((__strub__ ("internal")))
apply_args (int i, int j, double d)
{
  void *args = __builtin_apply_args ();
  apply_function (args);
}