Debian Codegraph @

gcc/testsuite/gcc.target/i386/strub-pr118006.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target strub } */
3 /* { dg-options "-fstrub=all -O2 -mno-accumulate-outgoing-args" } */
4
5 __attribute__((noipa))
6 long _raw_syscall(void *, long, long) {
7 __builtin_abort();
8 }
9
10 static int privileged_traced_syscall() {
11 return _raw_syscall(0, 0, 0);
12 }
13
14 void privileged_traced_raise() {
15 privileged_traced_syscall();
16 __builtin_unreachable ();
17 }