blob: 98124065b2fc36355a2e4e6d2ba15e76b447cfdc [file] [log] [blame]
/* { dg-xfail-if "can cause stack underflow" { nios2-*-* } } */
/* { dg-require-effective-target untyped_assembly } */
#define INTEGER_ARG 5
extern void abort(void);
static void foo(int arg)
{
if (arg != INTEGER_ARG)
abort();
}
static void bar(int arg)
{
foo(arg);
__builtin_apply(foo, __builtin_apply_args(), 16);
}
int main(void)
{
bar(INTEGER_ARG);
return 0;
}