1 /* { dg-do compile } */
2 /* { dg-options "-fharden-control-flow-redundancy -fno-exceptions -fdump-tree-hardcfr -ffat-lto-objects" } */
3 /* { dg-require-effective-target untyped_assembly } */
5 extern int foobar (void);
8 typedef void (*fnt
)(...);
10 typedef void (*fnt
)();
17 __builtin_return (__builtin_apply ((fnt
)foobar
,
18 __builtin_apply_args (), 0));
23 __builtin_return (__builtin_apply ((fnt
)foobar
,
24 __builtin_apply_args (), 0));
27 /* Out-of-line checking, before both builtin_return and return in f. */
28 /* { dg-final { scan-tree-dump-times "__hardcfr_check" 2 "hardcfr" } } */
29 /* Inline checking before builtin_return in g. */
30 /* { dg-final { scan-tree-dump-times "__builtin_trap" 1 "hardcfr" } } */